[PATCH] Fix the User/Group already exists log messages.
Vratislav Podzimek
vpodzime at redhat.com
Fri Aug 16 13:31:31 UTC 2013
On Fri, 2013-08-16 at 09:01 -0400, David Shea wrote:
> I wasn't paying attention to the variable names when I moved these log
> messages from one module to another, so this fixes that.
> ---
> pyanaconda/users.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/pyanaconda/users.py b/pyanaconda/users.py
> index a074fc8..8df7402 100644
> --- a/pyanaconda/users.py
> +++ b/pyanaconda/users.py
> @@ -189,7 +189,7 @@ class Users:
> self.admin = libuser.admin()
>
> if self.admin.lookupGroupByName(group_name):
> - log.error("Group %s already exists, not creating." % grp.name)
> + log.error("Group %s already exists, not creating." % group_name)
> os._exit(1)
>
> groupEnt = self.admin.initGroup(group_name)
> @@ -257,7 +257,7 @@ class Users:
> self.admin = libuser.admin()
>
> if self.admin.lookupUserByName(user_name):
> - log.error("User %s already exists, not creating." % usr.name)
> + log.error("User %s already exists, not creating." % user_name)
> os._exit(1)
>
> userEnt = self.admin.initUser(user_name)
ACK.
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list