diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-04-20 10:07:13 +0200 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2016-04-20 10:07:13 +0200 |
commit | 4f94345cd8532528c561a32fd462d5b4f709e60e (patch) | |
tree | 7cbff4bef75787c5cd7481ba5c305db10065e410 | |
parent | 082973e67c6d5c22b6a8dc64cbed13c0d4b80a16 (diff) |
Print openstack info only if CI_DEBUG==true
JIRA: FUNCTEST-205
Change-Id: I550d26ba1fddcedf5697dadd38a85148ecef2d44
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
-rwxr-xr-x | testcases/VIM/OpenStack/CI/libraries/check_os.sh | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/check_os.sh b/testcases/VIM/OpenStack/CI/libraries/check_os.sh index ab3d21922..98b8605cd 100755 --- a/testcases/VIM/OpenStack/CI/libraries/check_os.sh +++ b/testcases/VIM/OpenStack/CI/libraries/check_os.sh @@ -93,21 +93,22 @@ fi # To see the initial OpenStack defaults # in case we delete something later on. # This is to be removed for the release -echo "nova list:" -nova list -echo "cinder list" -cinder list -echo "nova floating-ip-list:" -nova floating-ip-list -echo "neutron net-list:" -neutron net-list -echo "neutron router-list:" -neutron router-list -echo "neutron security-group-list:" -neutron security-group-list -echo "openstack project list:" -openstack project list -echo "openstack user list:" -openstack user list - +if [[ "${CI_DEBUG,,}" == "true" ]];then + echo "nova list:" + nova list + echo "cinder list" + cinder list + echo "nova floating-ip-list:" + nova floating-ip-list + echo "neutron net-list:" + neutron net-list + echo "neutron router-list:" + neutron router-list + echo "neutron security-group-list:" + neutron security-group-list + echo "openstack project list:" + openstack project list + echo "openstack user list:" + openstack user list +fi exit 0 |