diff options
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-x | lib/Vyatta/ConfigOutput.pm | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/lib/Vyatta/ConfigOutput.pm b/lib/Vyatta/ConfigOutput.pm index 09713f9..10cd5f2 100755 --- a/lib/Vyatta/ConfigOutput.pm +++ b/lib/Vyatta/ConfigOutput.pm @@ -335,12 +335,12 @@ sub displayChildren { my ($state, $n) = $config->getDeactivated($path); if (defined $state) { if ($state eq 'active') { - if ($child_hash{$child} eq 'deleted') { - $dis = '! '; - } - else { - $dis = 'A '; - } + if ($child_hash{$child} eq 'deleted') { + $dis = '! '; + } + else { + $dis = 'A '; + } } elsif ($state eq 'local') { $dis = 'D '; @@ -390,7 +390,12 @@ sub displayChildren { my ($state, $n) = $config->getDeactivated($path); if (defined $state) { if ($state eq 'active') { - $dis = 'A '; + if ($cnodes{$cname} eq 'deleted') { + $dis = '! '; + } + else { + $dis = 'A '; + } } elsif ($state eq 'local') { $dis = 'D '; |