Code Review
/
functest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Create API to run a test case"
[functest.git]
/
functest
/
utils
/
openstack_snapshot.py
diff --git
a/functest/utils/openstack_snapshot.py
b/functest/utils/openstack_snapshot.py
old mode 100755
(executable)
new mode 100644
(file)
index
f4ef751
..
3dc6f80
--- a/
functest/utils/openstack_snapshot.py
+++ b/
functest/utils/openstack_snapshot.py
@@
-22,7
+22,6
@@
import logging
import yaml
import logging
import yaml
-import sys
import functest.utils.openstack_utils as os_utils
from functest.utils.constants import CONST
import functest.utils.openstack_utils as os_utils
from functest.utils.constants import CONST
@@
-131,6
+130,7
@@
def get_tenants(keystone_client):
def main():
def main():
+ logging.basicConfig()
logger.info("Generating OpenStack snapshot...")
nova_client = os_utils.get_nova_client()
logger.info("Generating OpenStack snapshot...")
nova_client = os_utils.get_nova_client()
@@
-163,8
+163,3
@@
def main():
logger.debug("NOTE: These objects will NOT be deleted after " +
"running the test.")
return 0
logger.debug("NOTE: These objects will NOT be deleted after " +
"running the test.")
return 0
-
-
-if __name__ == '__main__':
- logging.basicConfig()
- sys.exit(main())