added ability to parse lines without =

the value should be false.
This commit is contained in:
Dan Bode 2011-05-31 17:56:42 -07:00
parent 409f625e77
commit 52e9f93924
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ Puppet::Type.type(:nova_config).provide(
if hash[:line] =~ /^\s*(\S+)\s*=\s*(\S+)\s*$/
hash[:name]=$1
hash[:value]=$2
elsif hash[:line] =~ /^\s*(\S+)\s*$/
hash[:name]=$1
hash[:value]=false
else
raise Puppet::Error, "Invalid line: #{hash[:line]}"
end