mirror of https://github.com/schoebel/mars
marsadm: show IP only with --verbose
This commit is contained in:
parent
fcf4863503
commit
36081e51d8
|
@ -1028,7 +1028,7 @@ sub _get_ip {
|
|||
check_id($host);
|
||||
my $ip_path = "$mars/ips/ip-$host";
|
||||
if (my $from_link = get_link($ip_path, 2)) {
|
||||
lprint_stderr "Using IP '$from_link' from '$ip_path'\n";
|
||||
lprint_stderr "Using IP '$from_link' from '$ip_path'\n" if $verbose;
|
||||
return $from_link;
|
||||
}
|
||||
chomp (my @info = `/sbin/ip addr show`);
|
||||
|
|
Loading…
Reference in New Issue