added ability to parse lines without =
the value should be false.
This commit is contained in:
parent
409f625e77
commit
52e9f93924
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue