summaryrefslogtreecommitdiffstats
path: root/plugins/plugin_examples
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-09-08 12:38:58 +0200
committerMartin Sivak <msivak@redhat.com>2008-09-08 12:43:19 +0200
commit18fb1dd24d178d2659c6d4c473dc67b45c060f23 (patch)
tree73144da39a241435513498f31d399710fd27629b /plugins/plugin_examples
parentbae1648176d551968688386ec852198d9dc14878 (diff)
downloadfirstaidkit-18fb1dd24d178d2659c6d4c473dc67b45c060f23.tar.gz
firstaidkit-18fb1dd24d178d2659c6d4c473dc67b45c060f23.tar.xz
firstaidkit-18fb1dd24d178d2659c6d4c473dc67b45c060f23.zip
Name colision between self.backup and self.backup()
Diffstat (limited to 'plugins/plugin_examples')
-rw-r--r--plugins/plugin_examples/sample1Plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/plugin_examples/sample1Plugin.py b/plugins/plugin_examples/sample1Plugin.py
index 8479ddc..60a3ef4 100644
--- a/plugins/plugin_examples/sample1Plugin.py
+++ b/plugins/plugin_examples/sample1Plugin.py
@@ -32,7 +32,7 @@ class Sample1Plugin(Plugin):
def prepare(self):
self._result=ReturnSuccess
self._issue.set(reporting = self._reporting, origin = self, level = PLUGIN)
- self.backup = self._backups.getBackup(self.__class__.__name__+" -- "+self.name, persistent = True)
+ self._backup = self._backups.getBackup(self.__class__.__name__+" -- "+self.name, persistent = True)
self._reporting.info("Sample1Plugin in Prepare task", origin = self, level = PLUGIN)
def backup(self):
@@ -55,7 +55,7 @@ class Sample1Plugin(Plugin):
def clean(self):
self._result=ReturnSuccess
- self._backups.closeBackup(self.backup._id)
+ self._backups.closeBackup(self._backup._id)
self._reporting.info("Sample1Plugin in Clean task", origin = self, level = PLUGIN)
def get_plugin():