From 97a75dc95bf6fe06a11def970a6ac07da9ea769e Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 9 Jun 2010 16:23:29 +0200 Subject: [PATCH] show password line in all cases --- scripts/export-omf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/export-omf.py b/scripts/export-omf.py index 1f0517b..d470471 100755 --- a/scripts/export-omf.py +++ b/scripts/export-omf.py @@ -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='' + 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] -- 2.43.0