summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-03-04 16:16:17 +0100
committerMartin Sivak <msivak@redhat.com>2008-03-04 16:16:17 +0100
commit22520352e585772c3737d0dc966fb5f408b57aa4 (patch)
tree5aa6269dd6dc921485cf4426eda49920d55187c2
parent3fb456b5207423983406c9863f93bcb0d9b72ade (diff)
downloadfirstaidkit-22520352e585772c3737d0dc966fb5f408b57aa4.tar.gz
firstaidkit-22520352e585772c3737d0dc966fb5f408b57aa4.tar.xz
firstaidkit-22520352e585772c3737d0dc966fb5f408b57aa4.zip
Fix some semandics in reporting and typo in dependencies
-rw-r--r--plugins/passwd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/passwd.py b/plugins/passwd.py
index 054a09e..fab9443 100644
--- a/plugins/passwd.py
+++ b/plugins/passwd.py
@@ -42,7 +42,7 @@ class PasswdPlugin(Plugin):
@classmethod
def getDeps(cls):
- return set("root", "experimental", "filesystem")
+ return set(["root", "experimental", "filesystem"])
def __init__(self, *args, **kwargs):
Plugin.__init__(self, *args, **kwargs)
@@ -56,7 +56,7 @@ class PasswdPlugin(Plugin):
print spawnvch(executable = "/usr/bin/passwd", args = ["/usr/bin/passwd", "root"], chroot = Config.system.root).communicate(input = newpasswd+"\n"+newpasswd+"\n")
- self._reporting.info("Root password was reset to '%s'" % (newpasswd,), origin = PLUGIN)
+ self._reporting.info("Root password was reset to '%s'" % (newpasswd,), origin = self)
self._result=Return