'=' characters should be allowed in this config format too

This commit is contained in:
François Charlier 2012-04-24 17:18:00 +02:00
parent df563f1201
commit dbe6b6333b
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ Puppet::Type.type(:nova_config).provide(
:match => /(.*)/ ,
:post_parse => proc { |hash|
Puppet.debug("nova config line:#{hash[:line]} has been parsed")
if hash[:line] =~ /^\s*(\S+)\s*=\s*([\S ]+?)\s*$/
if hash[:line] =~ /^\s*(\S+?)\s*=\s*([\S ]+?)\s*$/
hash[:name]=$1
hash[:value]=$2
elsif hash[:line] =~ /^\s*(\S+)\s*$/