Commit 952aa0c2 by Matt Martz

Don't hardcode list of delete functions to loop through

parent 9485d82e
...@@ -145,8 +145,8 @@ def main(): ...@@ -145,8 +145,8 @@ def main():
args = parse_args() args = parse_args()
authenticate() authenticate()
for func in [delete_rax, delete_rax_clb, delete_rax_keypair, funcs = [f for n, f in globals().items() if n.startswith('delete_rax')]
delete_rax_network, delete_rax_cbs, delete_rax_cdb]: for func in sorted(funcs, key=lambda f: f.__name__):
try: try:
func(args) func(args)
except Exception as e: except Exception as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment