From: Nikos Skalkotos Date: Wed, 27 Jun 2012 09:59:18 +0000 (+0300) Subject: Fix a bug in _get_passworded_users method in Unix X-Git-Tag: v0.1~52 X-Git-Url: https://code.grnet.gr/git/snf-image-creator/commitdiff_plain/564a18ce0df5a84d430417a67b3c8123593ef6d3 Fix a bug in _get_passworded_users method in Unix The method used a wrong warning output function --- diff --git a/image_creator/os_type/unix.py b/image_creator/os_type/unix.py index 06eccbf..e23f351 100644 --- a/image_creator/os_type/unix.py +++ b/image_creator/os_type/unix.py @@ -63,7 +63,7 @@ class Unix(OSBase): user, passwd = match.groups() if len(passwd) > 0 and passwd[0] == '!': - warn("Ignoring locked %s account." % user) + self.out.warn("Ignoring locked %s account." % user) else: users.append(user)