diff options
Diffstat (limited to 'functest/utils/openstack_clean.py')
-rw-r--r--[-rwxr-xr-x] | functest/utils/openstack_clean.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/functest/utils/openstack_clean.py b/functest/utils/openstack_clean.py index e88245d6..d7df8f84 100755..100644 --- a/functest/utils/openstack_clean.py +++ b/functest/utils/openstack_clean.py @@ -23,7 +23,6 @@ # import logging -import sys import time import yaml @@ -382,6 +381,7 @@ def remove_tenants(keystone_client, default_tenants): def main(): + logging.basicConfig() logger.info("Cleaning OpenStack resources...") nova_client = os_utils.get_nova_client() @@ -430,8 +430,3 @@ def main(): remove_tenants(keystone_client, default_tenants) separator() return 0 - - -if __name__ == '__main__': - logging.basicConfig() - sys.exit(main()) |