mirror of
https://github.com/schoebel/mars
synced 2025-01-02 20:32:17 +00:00
marsadm: allow forced removal of defective peer names
This commit is contained in:
parent
28bac0ac82
commit
2dcb074d11
@ -4561,7 +4561,15 @@ sub lowlevel_set_host_ip {
|
||||
|
||||
sub lowlevel_delete_host {
|
||||
my ($cmd, $peer) = @_;
|
||||
check_id($peer, 1);
|
||||
if ($force) {
|
||||
eval {
|
||||
check_id($peer, 1);
|
||||
1;
|
||||
} or
|
||||
lwarn "ATTENTION - you said --force, thus I will continue AT YOUR RISK\n";
|
||||
} else {
|
||||
check_id($peer, 1);
|
||||
}
|
||||
my $path = "$mars/ips/ip-$peer";
|
||||
my $old = get_link($path);
|
||||
lprint "Removing host '$peer' old IP '$old'\n";
|
||||
|
Loading…
Reference in New Issue
Block a user