Merge pull request #519 from tchebb/fix-whitespace

Fix a few whitespace issues and a typo
This commit is contained in:
Sandro 2023-03-14 14:35:23 +01:00 committed by GitHub
commit b49bd9eda9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -931,13 +931,13 @@ my %services = (
}, },
}, },
'keysystems' => { 'keysystems' => {
'updateable' => undef, 'updateable' => undef,
'update' => \&nic_keysystems_update, 'update' => \&nic_keysystems_update,
'examples' => \&nic_keysystems_examples, 'examples' => \&nic_keysystems_examples,
'variables' => merge( 'variables' => merge(
$variables{'keysystems-common-defaults'}, $variables{'keysystems-common-defaults'},
$variables{'service-common-defaults'}, $variables{'service-common-defaults'},
), ),
}, },
'dnsexit' => { 'dnsexit' => {
'updateable' => undef, 'updateable' => undef,
@ -962,10 +962,10 @@ my %services = (
'update' => \&nic_enom_update, 'update' => \&nic_enom_update,
'examples' => \&nic_enom_examples, 'examples' => \&nic_enom_examples,
'variables' => { 'variables' => {
%{$variables{'service-common-defaults'}}, %{$variables{'service-common-defaults'}},
'server' => setv(T_FQDNP, 1, 0, 'dynamic.name-services.com', undef), 'server' => setv(T_FQDNP, 1, 0, 'dynamic.name-services.com', undef),
'min-interval' => setv(T_DELAY, 0, 0, 0, interval('5m')), 'min-interval' => setv(T_DELAY, 0, 0, 0, interval('5m')),
}, },
}, },
); );
$variables{'merged'} = { $variables{'merged'} = {
@ -1371,7 +1371,7 @@ sub write_cache {
## merge the updated host entries into the cache. ## merge the updated host entries into the cache.
foreach my $h (keys %config) { foreach my $h (keys %config) {
if (!exists $cache{$h} || $config{$h}{'update'}) { if (!exists $cache{$h} || $config{$h}{'update'}) {
map { defined($config{$h}{$_}) ? ($cache{$h}{$_} = $config{$h}{$_}) : () } @{$config{$h}{'cacheable'}}; map { defined($config{$h}{$_}) ? ($cache{$h}{$_} = $config{$h}{$_}) : () } @{$config{$h}{'cacheable'}};
} else { } else {
map { $cache{$h}{$_} = $config{$h}{$_} } qw(atime wtime status); map { $cache{$h}{$_} = $config{$h}{$_} } qw(atime wtime status);
} }
@ -5708,7 +5708,7 @@ sub nic_changeip_update {
} }
###################################################################### ######################################################################
## nic_googledomains_examples ## nic_godaddy_examples
## ##
## written by awalon ## written by awalon
## ##