summaryrefslogtreecommitdiff
path: root/scripts/VyattaConfigLoad.pm
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-19 18:30:44 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-19 18:30:44 -0800
commit42e3893766f215c7ece78a779c2f680507ae7801 (patch)
tree6e97c1c42b79d10d1b9a8be1de089cc017e48ebe /scripts/VyattaConfigLoad.pm
parent359eedef503b1577516a17b012e29c18c1f51e26 (diff)
downloadvyatta-cfg-42e3893766f215c7ece78a779c2f680507ae7801.tar.gz
vyatta-cfg-42e3893766f215c7ece78a779c2f680507ae7801.zip
check for quotes when loading nodes with multiple values.
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);