diff options
Diffstat (limited to 'scripts/VyattaConfigOutput.pm')
-rwxr-xr-x | scripts/VyattaConfigOutput.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/VyattaConfigOutput.pm b/scripts/VyattaConfigOutput.pm index f16007d..56c3a74 100755 --- a/scripts/VyattaConfigOutput.pm +++ b/scripts/VyattaConfigOutput.pm @@ -250,7 +250,12 @@ sub outputNewConfig { if (scalar(keys %rnodes) > 0) { displayChildren(\%rnodes, [ @_ ], ''); } else { - print "Current configuration is empty\n"; + if (defined($config->existsOrig())) { + # this is a deleted node + print 'Configuration under "' . (join ' ', @_) . "\" has been deleted\n"; + } else { + print "Current configuration is empty\n"; + } } } |