show password line in all cases
[infrastructure.git] / 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]