be less strict about finding the IP for logging
This commit is contained in:
@@ -608,8 +608,7 @@ sub delete {
|
|||||||
try { $ip ||= $devices->{attrs}->{where}->{ip} };
|
try { $ip ||= $devices->{attrs}->{where}->{ip} };
|
||||||
try { $ip ||= $devices->{attrs}->{where}->{'me.ip'} };
|
try { $ip ||= $devices->{attrs}->{where}->{'me.ip'} };
|
||||||
}
|
}
|
||||||
die "cannot find IP address in \$devices query for delete\n"
|
$ip ||= 'netdisco';
|
||||||
unless $ip;
|
|
||||||
|
|
||||||
foreach my $set (qw/
|
foreach my $set (qw/
|
||||||
DeviceIp
|
DeviceIp
|
||||||
|
|||||||
@@ -239,8 +239,7 @@ sub delete {
|
|||||||
try { $ip ||= ${ $ports->{attrs}->{where}->{ip}->{'-in'} }->[1]->[1] };
|
try { $ip ||= ${ $ports->{attrs}->{where}->{ip}->{'-in'} }->[1]->[1] };
|
||||||
try { $ip ||= $ports->{attrs}->{where}->{'me.ip'} };
|
try { $ip ||= $ports->{attrs}->{where}->{'me.ip'} };
|
||||||
}
|
}
|
||||||
die "cannot find IP address in \$ports query for delete\n"
|
$ip ||= 'netdisco';
|
||||||
unless $ip;
|
|
||||||
|
|
||||||
foreach my $set (qw/
|
foreach my $set (qw/
|
||||||
DevicePortPower
|
DevicePortPower
|
||||||
|
|||||||
Reference in New Issue
Block a user