marsadm: show IP only with --verbose

This commit is contained in:
Thomas Schoebel-Theuer 2014-03-25 08:05:53 +01:00 committed by Thomas Schoebel-Theuer
parent fcf4863503
commit 36081e51d8
1 changed files with 1 additions and 1 deletions

View File

@ -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`);