Unescape value in parse_allocation_pool
Neutron changed the library for formating shell output and it's now escaped. We just make sure we'll unescape it before applying regexp. Change-Id: I8250353bb8afb3e9431a0fe225e62b1c34f74924
This commit is contained in:
parent
8946a0e99b
commit
659e2cb2d8
@ -69,7 +69,7 @@ Puppet::Type.type(:neutron_subnet).provide(
|
||||
host_routes = []
|
||||
return [] if values.empty?
|
||||
for value in Array(values)
|
||||
matchdata = /\{\s*"destination"\s*:\s*"(.*)"\s*,\s*"nexthop"\s*:\s*"(.*)"\s*\}/.match(value)
|
||||
matchdata = /\{\s*"destination"\s*:\s*"(.*)"\s*,\s*"nexthop"\s*:\s*"(.*)"\s*\}/.match(value.gsub(/\\"/,'"'))
|
||||
destination = matchdata[1]
|
||||
nexthop = matchdata[2]
|
||||
host_routes << "destination=#{destination},nexthop=#{nexthop}"
|
||||
|
Loading…
Reference in New Issue
Block a user