googledomains: 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
40e4aee74f
commit
8e20185323
1 changed files with 22 additions and 30 deletions
12
ddclient.in
12
ddclient.in
|
@ -5831,15 +5831,8 @@ EoEXAMPLE
|
|||
######################################################################
|
||||
sub nic_googledomains_update {
|
||||
debug("\nnic_googledomains_update -------------------");
|
||||
my %groups = group_hosts_by(\@_, [qw(server login password wantip)]);
|
||||
for my $sig (keys %groups) {
|
||||
my @hosts = @{$groups{$sig}};
|
||||
my $key = $hosts[0];
|
||||
my $ip = $config{$key}{'wantip'};
|
||||
|
||||
for my $host (@hosts) {
|
||||
delete $config{$host}{'wantip'};
|
||||
|
||||
for my $host (@_) {
|
||||
my $ip = delete $config{$host}{'wantip'};
|
||||
info("setting IP address to %s for %s", $ip, $host);
|
||||
verbose("UPDATE:", "updating %s", $host);
|
||||
|
||||
|
@ -5865,7 +5858,6 @@ sub nic_googledomains_update {
|
|||
$config{$host}{'status'} = 'good';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
######################################################################
|
||||
## nic_mythicdyn_examples
|
||||
|
|
Loading…
Reference in a new issue