[openlmi-scripts] fixed storage mount command

Michal Minar miminar at fedoraproject.org
Tue Feb 25 09:35:59 UTC 2014


commit 2286aae1954488d2e8e26eaeb73098a9591fc4cc
Author: Michal Minar <miminar at redhat.com>
Date:   Tue Feb 25 10:26:29 2014 +0100

    fixed storage mount command

 openlmi-scripts-0.2.7-storage_mount_fix.patch |   13 +++++++++++++
 openlmi-scripts.spec                          |    7 ++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/openlmi-scripts-0.2.7-storage_mount_fix.patch b/openlmi-scripts-0.2.7-storage_mount_fix.patch
new file mode 100644
index 0000000..f39bf9b
--- /dev/null
+++ b/openlmi-scripts-0.2.7-storage_mount_fix.patch
@@ -0,0 +1,13 @@
+diff --git a/commands/storage/lmi/scripts/storage/mount.py b/commands/storage/lmi/scripts/storage/mount.py
+index 2f61ee6..c94bc5a 100644
+--- a/commands/storage/lmi/scripts/storage/mount.py
++++ b/commands/storage/lmi/scripts/storage/mount.py
+@@ -72,7 +72,7 @@ def build_opts_str(mnt):
+             otheropts = v
+         elif k in _OPTS:
+             opts.append(k + ':' + unicode(v))
+-    opts.extend(o)
++    opts.extend(otheropts)
+     return ', '.join(sorted(opts))
+ 
+ def get_setting_from_opts(ns, options):
diff --git a/openlmi-scripts.spec b/openlmi-scripts.spec
index 2f5c513..185a78d 100644
--- a/openlmi-scripts.spec
+++ b/openlmi-scripts.spec
@@ -5,7 +5,7 @@
 
 Name:           openlmi-scripts
 Version:        %{openlmi_scripts_version}
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Client-side python modules and command line utilities
 
 License:        BSD
@@ -27,6 +27,7 @@ Requires:       python-docopt >= 0.6.1
 Requires:       openlmi-tools >= 0.9
 
 Patch0:         openlmi-scripts-0.2.7-hardware_support_older_providers.patch
+Patch1:         openlmi-scripts-0.2.7-storage_mount_fix.patch
 
 %description
 Client-side python modules and command line utilities.
@@ -106,6 +107,7 @@ system.
 %prep
 %setup -qn %{name}-%{commit}
 %patch0 -p1 -b .hardware_support_older_providers
+%patch1 -p1 -b .storage_mount_fix
 
 %build
 %{__python} setup.py build
@@ -208,6 +210,9 @@ install -m 644 README.md COPYING Changelog $RPM_BUILD_ROOT/%{_docdir}/%{name}
 %{python_sitelib}/openlmi_scripts_system-*
 
 %changelog
+* Tue Feb 25 2014 Michal Minar <miminar at redhat.com> 0.2.7-2
+- Fixed storage mount list command.
+
 * Tue Feb 25 2014 Michal Minar <miminar at redhat.com> 0.2.7-1
 - Support older OpenLMI Hardware providers.
 - Resolves: bz#1069320


More information about the scm-commits mailing list