summaryrefslogtreecommitdiff
path: root/scripts/VyattaConfigLoad.pm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/VyattaConfigLoad.pm')
-rwxr-xr-xscripts/VyattaConfigLoad.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/VyattaConfigLoad.pm b/scripts/VyattaConfigLoad.pm
index eae2946..efec951 100755
--- a/scripts/VyattaConfigLoad.pm
+++ b/scripts/VyattaConfigLoad.pm
@@ -209,7 +209,7 @@ sub findDeletedValues {
# for "multi:" nodes, need to sort the values by the original order.
my @nvals = getSortedMultiValues($new_ref, \@active_path);
if ($is_text) {
- @nvals = map { /^"(.*)"$/; $1; } @nvals;
+ @nvals = map { /^"(.*)"$/ ? $1 : $_ }@nvals;
}
my @ovals = $active_cfg->returnOrigValues('');
my %comp_hash = $active_cfg->compareValueLists(\@ovals, \@nvals);
@@ -261,7 +261,7 @@ sub findSetValues {
# for "multi:" nodes, need to sort the values by the original order.
my @nvals = getSortedMultiValues($new_ref, \@active_path);
if ($is_text) {
- @nvals = map { /^"(.*)"$/; $1; } @nvals;
+ @nvals = map { /^"(.*)"$/ ? $1 : $_ } @nvals;
}
my @ovals = $active_cfg->returnOrigValues('');
my %comp_hash = $active_cfg->compareValueLists(\@ovals, \@nvals);