From a2e8d0838e63b3c48e59d34aac85d1c8519ed270 Mon Sep 17 00:00:00 2001 From: Olivier Sallou Date: Wed, 10 Jul 2013 16:35:40 +0200 Subject: [PATCH] set root password only if set in manifest --- providers/one/tasks/security.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/one/tasks/security.py b/providers/one/tasks/security.py index 0178af2..cdf519b 100644 --- a/providers/one/tasks/security.py +++ b/providers/one/tasks/security.py @@ -17,7 +17,8 @@ class SetRootPassword(Task): def run(self, info): from common.tools import log_check_call - log_check_call(['/usr/sbin/chpasswd'], 'root:'+info.manifest.credentials['root']) + if info.manifest.credentials['root']: + log_check_call(['/usr/sbin/chpasswd'], 'root:'+info.manifest.credentials['root']) class DisableSSHPasswordAuthentication(Task): description = 'Disabling SSH password authentication'