fix bug in renumbering to an alias

This commit is contained in:
Oliver Gorwits
2015-04-27 17:05:50 +01:00
parent 15f515b601
commit c0d81cf1ef
4 changed files with 4 additions and 14 deletions

View File

@@ -169,9 +169,9 @@ unless ($action) {
return ('error', sprintf "Already know new device as: %s.", $new_dev->ip);
}
renumber_device($device, $new_dev->ip);
renumber_device($device, $new_ip);
return ('done', sprintf 'Renumbered device %s to %s (%s).',
$device->ip, $new_dev->ip, ($device->dns || ''));
$device->ip, $new_ip, ($device->dns || ''));
}
sub psql {