Replace remaining logic to parse python dict
... by the common implementation from puppet-openstacklib. It was overlooked in the previous attempt. Change-Id: I532cb479e05da64bb8d5396748dba0633e68aa54
This commit is contained in:
parent
a09db1dceb
commit
5dc60c9ab6
@ -29,7 +29,7 @@ class Puppet::Provider::Neutron < Puppet::Provider::Openstack
|
||||
end
|
||||
|
||||
def self.parse_availability_zone_hint(value)
|
||||
hints = JSON.parse(value.gsub(/\\"/,'"').gsub('\'','"'))
|
||||
hints = parse_python_list(value)
|
||||
# TODO(tkajinam): Support multiple values
|
||||
hints.first
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user