mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 09:38:12 -03:30
fix openstack cleanup (#11299)
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
This commit is contained in:
@@ -38,8 +38,15 @@ def main():
|
||||
conn.compute.servers())
|
||||
|
||||
print('Security groups...')
|
||||
map_if_old(conn.network.delete_security_group,
|
||||
conn.network.security_groups())
|
||||
try:
|
||||
map_if_old(conn.network.delete_security_group,
|
||||
conn.network.security_groups())
|
||||
except openstack.exceptions.ConflictException as ex:
|
||||
# Need to delete port when security groups is in used
|
||||
map_if_old(conn.network.delete_port,
|
||||
conn.network.ports())
|
||||
map_if_old(conn.network.delete_security_group,
|
||||
conn.network.security_groups())
|
||||
|
||||
print('Ports...')
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user