Maxime Guyot
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
scripts/openstack-cleanup/main.py
|
@ -34,14 +34,14 @@ def main(): |
|
|
|
|
|
|
|
|
conn = openstack.connect() |
|
|
conn = openstack.connect() |
|
|
|
|
|
|
|
|
print('Security groups...') |
|
|
|
|
|
map_if_old(conn.network.delete_security_group, |
|
|
|
|
|
conn.network.security_groups()) |
|
|
|
|
|
|
|
|
|
|
|
print('Servers...') |
|
|
print('Servers...') |
|
|
map_if_old(conn.compute.delete_server, |
|
|
map_if_old(conn.compute.delete_server, |
|
|
conn.compute.servers()) |
|
|
conn.compute.servers()) |
|
|
|
|
|
|
|
|
|
|
|
print('Security groups...') |
|
|
|
|
|
map_if_old(conn.network.delete_security_group, |
|
|
|
|
|
conn.network.security_groups()) |
|
|
|
|
|
|
|
|
print('Subnets...') |
|
|
print('Subnets...') |
|
|
map_if_old(conn.network.delete_subnet, |
|
|
map_if_old(conn.network.delete_subnet, |
|
|
conn.network.subnets()) |
|
|
conn.network.subnets()) |
|
|