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:
Takashi Kajinami 2024-10-12 22:46:15 +09:00
parent a09db1dceb
commit 5dc60c9ab6

View File

@ -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