From 564a18ce0df5a84d430417a67b3c8123593ef6d3 Mon Sep 17 00:00:00 2001
From: Nikos Skalkotos <skalkoto@grnet.gr>
Date: Wed, 27 Jun 2012 12:59:18 +0300
Subject: [PATCH] Fix a bug in _get_passworded_users method in Unix

The method used a wrong warning output function
---
 image_creator/os_type/unix.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
 
-- 
GitLab