Skip to content

Commit

Permalink
fix(pools): auto-number even with only one clone (#1451)
Browse files Browse the repository at this point in the history
issue #1443
  • Loading branch information
frankiejol authored Nov 25, 2020
1 parent 242bb56 commit 97e4976
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Ravada.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3122,8 +3122,9 @@ sub _cmd_open_iptables {

sub _cmd_clone($self, $request) {

return _req_clone_many($self, $request) if $request->defined_arg('number')
&& $request->defined_arg('number') > 1;
return _req_clone_many($self, $request)
if ( $request->defined_arg('number') && $request->defined_arg('number') > 1)
|| (! $request->defined_arg('name') && $request->defined_arg('add_to_pool'));

my $domain = Ravada::Domain->open($request->args('id_domain'))
or confess "Error: Domain ".$request->args('id_domain')." not found";
Expand Down

0 comments on commit 97e4976

Please sign in to comment.