diff options
-rwxr-xr-x | scripts/vyatta-show-bonding.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-show-bonding.pl b/scripts/vyatta-show-bonding.pl index 68e65e2..c3f5b01 100755 --- a/scripts/vyatta-show-bonding.pl +++ b/scripts/vyatta-show-bonding.pl @@ -76,7 +76,8 @@ sub show_brief { $mode =~ s/ [0-9]+$//; my ( $state, $link ) = get_state_link($intf); my $slaves = get_sysfs_value( $intf, "bonding/slaves" ); - printf $format, $intf, $mode, $state, $link, $slaves; + printf $format, $intf, $mode, $state, $link, + $slaves ? $slaves : ''; } } |