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:
Richard Hansen 2024-07-12 18:36:20 -04:00
parent 5db77f7c31
commit e8a6d1479f

View file

@ -5703,10 +5703,7 @@ EoEXAMPLE
###################################################################### ######################################################################
sub nic_godaddy_update { sub nic_godaddy_update {
debug("\nnic_godaddy_update --------------------"); debug("\nnic_godaddy_update --------------------");
my %groups = group_hosts_by(\@_, [qw(server login password zone wantipv4 wantipv6)]); for my $host (@_) {
for my $sig (keys %groups) {
my @hosts = @{$groups{$sig}};
for my $host (@hosts) {
my $ipv4 = delete $config{$host}{'wantipv4'}; my $ipv4 = delete $config{$host}{'wantipv4'};
my $ipv6 = delete $config{$host}{'wantipv6'}; my $ipv6 = delete $config{$host}{'wantipv6'};
@ -5794,7 +5791,6 @@ sub nic_godaddy_update {
failed("%s.%s -- %s", $hostname, $zone, $msg); failed("%s.%s -- %s", $hostname, $zone, $msg);
} }
} }
}
} }
###################################################################### ######################################################################