[openlmi-tools/f19] fix instance deletion
Peter Hatina
phatina at fedoraproject.org
Wed Nov 6 13:41:59 UTC 2013
commit 4e5131ca6f5f43d7784f6cdcbb09d3b43323589d
Author: Peter Hatina <phatina at redhat.com>
Date: Wed Nov 6 14:38:34 2013 +0100
fix instance deletion
openlmi-tools-02-fix-instance-deletion.patch | 13 +++++++++++++
openlmi-tools.spec | 7 ++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/openlmi-tools-02-fix-instance-deletion.patch b/openlmi-tools-02-fix-instance-deletion.patch
new file mode 100644
index 0000000..41318f8
--- /dev/null
+++ b/openlmi-tools-02-fix-instance-deletion.patch
@@ -0,0 +1,13 @@
+diff --git a/cli/lmi/shell/LMIInstance.py b/cli/lmi/shell/LMIInstance.py
+index 2152ba6..126d438 100644
+--- a/cli/lmi/shell/LMIInstance.py
++++ b/cli/lmi/shell/LMIInstance.py
+@@ -713,7 +713,7 @@ class LMIInstance(LMIWrapperBaseObject):
+
+ **Usage:** :ref:`instances_delete`.
+ """
+- (rval, rparams, errorstr) = self._conn._client._delete_instance(self.path)
++ (rval, rparams, errorstr) = self._conn._client._delete_instance(self._cim_instance.path)
+ self._deleted = rval == 0
+ return self._deleted
+
diff --git a/openlmi-tools.spec b/openlmi-tools.spec
index a46a990..bb5725e 100644
--- a/openlmi-tools.spec
+++ b/openlmi-tools.spec
@@ -1,12 +1,13 @@
Name: openlmi-tools
Version: 0.9
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Set of CLI tools for Openlmi providers
License: GPLv2+
URL: http://fedorahosted.org/openlmi
Source0: http://fedorahosted.org/released/openlmi-tools/%{name}-%{version}.tar.gz
Patch0: openlmi-tools-01-python-base-dep.patch
+Patch1: openlmi-tools-02-fix-instance-deletion.patch
BuildArch: noarch
BuildRequires: automake
@@ -27,6 +28,7 @@ Obsoletes: cura-tools < 0.1-4
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
pushd cli
@@ -70,6 +72,9 @@ install -m 644 cli/completion/_lmishell $zsh_comp_dir
%{python_sitelib}/openlmi_tools-*
%changelog
+* Wed Nov 6 2013 Peter Hatina <phatina at redhat.com> - 0.9-2
+- fix instance deletion
+
* Mon Nov 4 2013 Peter Hatina <phatina at redhat.com> - 0.9-1
- upgrade to v0.9
More information about the scm-commits
mailing list