mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-9266: Make deleting static routes in private gw work
This commit is contained in:
parent
333957f00f
commit
a40415604a
@ -21,13 +21,5 @@ from pprint import pprint
|
||||
def merge(dbag, staticroutes):
|
||||
for route in staticroutes['routes']:
|
||||
key = route['network']
|
||||
revoke = route['revoke']
|
||||
if revoke:
|
||||
try:
|
||||
del dbag[key]
|
||||
except KeyError:
|
||||
pass
|
||||
else:
|
||||
dbag[key] = route
|
||||
|
||||
dbag[key] = route
|
||||
return dbag
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user