Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit e14fb67f46567a038b477694a2568349da286f00
Author: Peter Hatina <phatina(a)redhat.com>
Date: Tue Oct 22 15:18:23 2013 +0200
fix subscription auto-delete
---------------------------------------------------------------
cli/lmi/shell/LMIConnection.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cli/lmi/shell/LMIConnection.py b/cli/lmi/shell/LMIConnection.py
index d14ce92..301fa52 100644
--- a/cli/lmi/shell/LMIConnection.py
+++ b/cli/lmi/shell/LMIConnection.py
@@ -325,7 +325,7 @@ class LMIConnection(object):
* **SubscriptionCreationClassName** (*string*) -- subscription object class
name
* **Permanent** (*bool*) -- whether to preserve the created subscription on
- LMIShell's quit
+ LMIShell's quit. Default value is False.
* **FilterCreationClassName** (*string*) -- creation class name of the
filter
object
* **FilterSystemCreationClassName** (*string*) -- system creation class name
@@ -406,7 +406,7 @@ class LMIConnection(object):
lmi_raise_or_dump_exception(LMIIndicationError(errorstr))
return LMIReturnValue(rval=False, errorstr=errorstr)
# XXX: Should we auto-delete all the indications?
- permanent = kwargs.get("Permanent", True)
+ permanent = kwargs.get("Permanent", False)
self._indications[kwargs["Name"]] = LMISubscription(
self._client,
(cim_filter, not cim_filter_provided),