summaryrefslogtreecommitdiffstats
path: root/plugins/passwd.py
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-03-10 19:38:15 +0100
committerJoel Andres Granados <jgranado@redhat.com>2008-03-10 19:38:15 +0100
commit837b3e9ad3095e0ea9b81c16a33ef4ee15828e59 (patch)
tree75dbaeb0f8b022be4f3be22b89ae98089e88e8a8 /plugins/passwd.py
parente05cb60bcc306396f97cf43ad0c26b5e21529873 (diff)
downloadfirstaidkit-837b3e9ad3095e0ea9b81c16a33ef4ee15828e59.tar.gz
firstaidkit-837b3e9ad3095e0ea9b81c16a33ef4ee15828e59.tar.xz
firstaidkit-837b3e9ad3095e0ea9b81c16a33ef4ee15828e59.zip
fix some small errors.
Diffstat (limited to 'plugins/passwd.py')
-rw-r--r--plugins/passwd.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/passwd.py b/plugins/passwd.py
index c55b64c..87603f1 100644
--- a/plugins/passwd.py
+++ b/plugins/passwd.py
@@ -54,11 +54,12 @@ class PasswdPlugin(Plugin):
while len(newpasswd)<passlen:
newpasswd.append(rng.choice(charlist))
- print spawnvch(executable = "/usr/bin/passwd", args = ["/usr/bin/passwd", "root"], chroot = Config.system.root).communicate(input = newpasswd+"\n"+newpasswd+"\n")
+ print spawnvch(executable = "/usr/bin/passwd", args = ["/usr/bin/passwd", "root"],
+ chroot = Config.system.root).communicate(input = "%s\n%s\n"%(newpasswd,newpasswd)
self._reporting.info("Root password was reset to '%s'" % (newpasswd,), level = PLUGIN, origin = self)
- self._result=Return
+ self._result=ReturnSuccess
def get_plugin():
return PasswdPlugin