summaryrefslogtreecommitdiffstats
path: root/commands/storage/test
diff options
context:
space:
mode:
authorJan Synacek <jsynacek@redhat.com>2014-02-26 11:15:12 +0100
committerJan Synacek <jsynacek@redhat.com>2014-02-26 11:28:50 +0100
commit7f9a8fff98ad4c6981b5be08c87a48eed6651f90 (patch)
tree242bda0fcf6b73f2886aef2a792c10665a460ef5 /commands/storage/test
parent99937700f24cad92a8a44555e3d02d6afc6e3443 (diff)
downloadopenlmi-scripts-7f9a8fff98ad4c6981b5be08c87a48eed6651f90.tar.gz
openlmi-scripts-7f9a8fff98ad4c6981b5be08c87a48eed6651f90.tar.xz
openlmi-scripts-7f9a8fff98ad4c6981b5be08c87a48eed6651f90.zip
tests: quote host url
Don't let the shell interpret special characters in passwords, usernames or hostnames.
Diffstat (limited to 'commands/storage/test')
-rw-r--r--commands/storage/test/lmi/base.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/storage/test/lmi/base.sh b/commands/storage/test/lmi/base.sh
index b9ca945..3cc6d5c 100644
--- a/commands/storage/test/lmi/base.sh
+++ b/commands/storage/test/lmi/base.sh
@@ -37,4 +37,4 @@
HOSTNAME=$( echo $LMI_CIMOM_URL | sed -e 's!^.*//!!' -e 's!/.*!!')
PARTITIONS=( $LMI_STORAGE_PARTITIONS )
-export LMI="lmi -n --trace --host $LMI_CIMOM_USERNAME:$LMI_CIMOM_PASSWORD@$HOSTNAME"
+export LMI="lmi -n --trace --host \"$LMI_CIMOM_USERNAME:$LMI_CIMOM_PASSWORD@$HOSTNAME\""