summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Config.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Config.pm')
-rwxr-xr-xlib/Vyatta/Config.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm
index 633d747..515be64 100755
--- a/lib/Vyatta/Config.pm
+++ b/lib/Vyatta/Config.pm
@@ -747,8 +747,11 @@ sub parseTmplAll {
$ret{tag} = 1;
} elsif (/^type:\s+(\S+)\s*$/) {
$ret{type} = $1;
- } elsif (/^default:\s+(\S+)\s*$/) {
+ } elsif (/^default:\s+(\S.*)\s*$/) {
$ret{default} = $1;
+ if ($ret{default} =~ /^"(.*)"$/) {
+ $ret{default} = $1;
+ }
} elsif (/^help:\s+(\S.*)$/) {
$ret{help} = $1;
}