Print openstack info only if CI_DEBUG==true 71/12471/1
authorjose.lausuch <jose.lausuch@ericsson.com>
Wed, 20 Apr 2016 08:07:13 +0000 (10:07 +0200)
committerjose.lausuch <jose.lausuch@ericsson.com>
Wed, 20 Apr 2016 08:07:13 +0000 (10:07 +0200)
JIRA: FUNCTEST-205

Change-Id: I550d26ba1fddcedf5697dadd38a85148ecef2d44
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
testcases/VIM/OpenStack/CI/libraries/check_os.sh

index ab3d219..98b8605 100755 (executable)
@@ -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