Merge "Allow for a more permissible regex"

This commit is contained in:
Zuul 2021-08-17 13:32:50 +00:00 committed by Gerrit Code Review
commit 371242b879

View File

@ -123,7 +123,7 @@ Puppet::Type.type(:nova_aggregate).provide(
end
def self.pythondict2hash(input)
return JSON.parse(input.gsub(/u'(\w*)'/, '"\1"').gsub(/'/, '"'))
return JSON.parse(input.gsub(/u'([^']*)'/, '"\1"').gsub(/'/, '"'))
end
def self.parsestring(input)