diff options
author | Jan Safranek <jsafrane@redhat.com> | 2013-09-30 15:46:52 +0200 |
---|---|---|
committer | Jan Safranek <jsafrane@redhat.com> | 2013-09-30 15:46:52 +0200 |
commit | f8fd4fd9a8e0729016d7c8b21ad5ffcc563f8b83 (patch) | |
tree | 7ffe88a775a0adbaefbf2a62a31e2522e9a4d1fe /commands/storage/lmi | |
parent | 9318b95cdcae3f33205db2711d7f7d6a59c0a3e1 (diff) | |
download | openlmi-scripts-f8fd4fd9a8e0729016d7c8b21ad5ffcc563f8b83.tar.gz openlmi-scripts-f8fd4fd9a8e0729016d7c8b21ad5ffcc563f8b83.tar.xz openlmi-scripts-f8fd4fd9a8e0729016d7c8b21ad5ffcc563f8b83.zip |
Fixed typos
Diffstat (limited to 'commands/storage/lmi')
-rw-r--r-- | commands/storage/lmi/scripts/storage/fs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/storage/lmi/scripts/storage/fs.py b/commands/storage/lmi/scripts/storage/fs.py index 9176504..357cea0 100644 --- a/commands/storage/lmi/scripts/storage/fs.py +++ b/commands/storage/lmi/scripts/storage/fs.py @@ -80,7 +80,7 @@ def _get_fs_id(ns, fsname): """ service = ns.LMI_FileSystemConfigurationService.first_instance() values = service.LMI_CreateFileSystem.FileSystemTypeValues - fsid = values.values_dict.get(fsname.upper, None) + fsid = values.values_dict().get(fsname.upper(), None) if not fsid: raise LmiFailed("Unsupported filesystem name: %s" % fsname) return fsid @@ -186,12 +186,12 @@ def create_fs(ns, devices, fs, label=None): fsid = _get_fs_id(ns, fs) service = ns.LMI_FileSystemConfigurationService.first_instance() args = { - 'FyleSystemType': fsid, + 'FileSystemType': fsid, 'InExtents': devs, } if label: args['ElementName'] = label - (ret, outparams, err) = service.LMI_CreateFileSystem(**args) + (ret, outparams, err) = service.SyncLMI_CreateFileSystem(**args) if ret != 0: if err: raise LmiFailed("Cannot format the device %s: %s." |