From 952aa0c2d801931cea7fbc868744059eb63c3ced Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 20 Jan 2015 11:49:22 -0600 Subject: [PATCH] Don't hardcode list of delete functions to loop through --- test/integration/cleanup_rax.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/cleanup_rax.py b/test/integration/cleanup_rax.py index f65a96ca682..95f8ba2f0ae 100644 --- a/test/integration/cleanup_rax.py +++ b/test/integration/cleanup_rax.py @@ -145,8 +145,8 @@ def main(): args = parse_args() authenticate() - for func in [delete_rax, delete_rax_clb, delete_rax_keypair, - delete_rax_network, delete_rax_cbs, delete_rax_cdb]: + funcs = [f for n, f in globals().items() if n.startswith('delete_rax')] + for func in sorted(funcs, key=lambda f: f.__name__): try: func(args) except Exception as e: