From 4f94345cd8532528c561a32fd462d5b4f709e60e Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Wed, 20 Apr 2016 10:07:13 +0200 Subject: Print openstack info only if CI_DEBUG==true JIRA: FUNCTEST-205 Change-Id: I550d26ba1fddcedf5697dadd38a85148ecef2d44 Signed-off-by: jose.lausuch --- testcases/VIM/OpenStack/CI/libraries/check_os.sh | 35 ++++++++++++------------ 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'testcases/VIM/OpenStack') 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 -- cgit 1.2.3-korg