show password line in all cases
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 9 Jun 2010 14:23:29 +0000 (16:23 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 9 Jun 2010 14:23:29 +0000 (16:23 +0200)
scripts/export-omf.py

index 1f0517b..d470471 100755 (executable)
@@ -38,8 +38,9 @@ class OmfUserBase:
             print >>file, "site=%s"%sites_by_id[site_id]['name']
         if 'pi' in person['roles']:
             print >>file, "pi=yes"
-        if not self.options.no_password:
-            print >>file, "password=%s"%person['password']
+        if self.options.no_password: password='<snip>'
+        else: password=person['password']
+        print >>file, "password=%s"%password
         for key_id in person['key_ids']:
             print >>file, "ssh=%s"%pubkeys_by_id[key_id]