summaryrefslogtreecommitdiffstats
path: root/commands/storage
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2014-01-21 10:06:40 +0100
committerJan Safranek <jsafrane@redhat.com>2014-01-21 10:06:40 +0100
commitada83581573665f2b0706da1a3323caecec5dc87 (patch)
tree7e21af2954cbd8caa7bf81a2778c16cf2f39fadc /commands/storage
parente881002cc2f46a953858c1ff02ca9f1a4787c355 (diff)
downloadopenlmi-scripts-ada83581573665f2b0706da1a3323caecec5dc87.tar.gz
openlmi-scripts-ada83581573665f2b0706da1a3323caecec5dc87.tar.xz
openlmi-scripts-ada83581573665f2b0706da1a3323caecec5dc87.zip
Show file system names in lower case.
Diffstat (limited to 'commands/storage')
-rw-r--r--commands/storage/lmi/scripts/storage/fs_cmd.py3
-rw-r--r--commands/storage/test/lmi/test_fs.sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/commands/storage/lmi/scripts/storage/fs_cmd.py b/commands/storage/lmi/scripts/storage/fs_cmd.py
index 93d91ca..5557852 100644
--- a/commands/storage/lmi/scripts/storage/fs_cmd.py
+++ b/commands/storage/lmi/scripts/storage/fs_cmd.py
@@ -108,7 +108,8 @@ class ListSupported(command.LmiLister):
caps = ns.LMI_FileSystemConfigurationCapabilities.first_instance()
cls = ns.LMI_FileSystemConfigurationCapabilities
for fstype in caps.SupportedActualFileSystemTypes:
- yield [cls.SupportedActualFileSystemTypesValues.value_name(fstype)]
+ fsname = cls.SupportedActualFileSystemTypesValues.value_name(fstype)
+ yield [fsname.lower()]
class Create(command.LmiCheckResult):
diff --git a/commands/storage/test/lmi/test_fs.sh b/commands/storage/test/lmi/test_fs.sh
index e05d639..141de5b 100644
--- a/commands/storage/test/lmi/test_fs.sh
+++ b/commands/storage/test/lmi/test_fs.sh
@@ -52,7 +52,7 @@ rlPhaseStartTest
rlLogInfo "Test fs list"
# the last column is lower-case filesystem type in double quotes
- fstype=$(cat $rlRun_LOG | cut -f 4 -d ',' | tr '[a-z]' '[A-Z]')
+ fstype=$(cat $rlRun_LOG | cut -f 4 -d ',' )
rlAssertEquals "Checking fs $fsname is present on $part" "\"$fsname\"" $fstype
rm $rlRun_LOG