Fix a bug in _get_passworded_users method in Unix
authorNikos Skalkotos <skalkoto@grnet.gr>
Wed, 27 Jun 2012 09:59:18 +0000 (12:59 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Wed, 27 Jun 2012 09:59:18 +0000 (12:59 +0300)
The method used a wrong warning output function

image_creator/os_type/unix.py

index 06eccbf..e23f351 100644 (file)
@@ -63,7 +63,7 @@ class Unix(OSBase):
 
             user, passwd = match.groups()
             if len(passwd) > 0 and passwd[0] == '!':
 
             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)
 
             else:
                 users.append(user)