godaddy: Remove unnecessary host groupings
Each host is already updated individually so there's no point in grouping the hosts.
This commit is contained in:
parent
5db77f7c31
commit
e8a6d1479f
1 changed files with 79 additions and 83 deletions
|
@ -5703,10 +5703,7 @@ EoEXAMPLE
|
|||
######################################################################
|
||||
sub nic_godaddy_update {
|
||||
debug("\nnic_godaddy_update --------------------");
|
||||
my %groups = group_hosts_by(\@_, [qw(server login password zone wantipv4 wantipv6)]);
|
||||
for my $sig (keys %groups) {
|
||||
my @hosts = @{$groups{$sig}};
|
||||
for my $host (@hosts) {
|
||||
for my $host (@_) {
|
||||
my $ipv4 = delete $config{$host}{'wantipv4'};
|
||||
my $ipv6 = delete $config{$host}{'wantipv6'};
|
||||
|
||||
|
@ -5794,7 +5791,6 @@ sub nic_godaddy_update {
|
|||
failed("%s.%s -- %s", $hostname, $zone, $msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
######################################################################
|
||||
|
|
Loading…
Reference in a new issue