From d18d2de18edb2dedc7c50d553dee81c17fd4c3f8 Mon Sep 17 00:00:00 2001 From: Luciano Cavalheiro da Silva Date: Sat, 4 May 2013 21:18:29 -0300 Subject: [PATCH] Fix #2836. Ensure proper handling of option "system=yes" in module "group". --- library/system/group | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/system/group b/library/system/group index 5d83fc67efb..caa4d417c06 100644 --- a/library/system/group +++ b/library/system/group @@ -103,7 +103,7 @@ class Group(object): if key == 'gid' and kwargs[key] is not None: cmd.append('-g') cmd.append(kwargs[key]) - elif key == 'system' and kwargs[key] == 'yes': + elif key == 'system' and kwargs[key] == True: cmd.append('-r') cmd.append(self.name) return self.execute_command(cmd) @@ -189,7 +189,7 @@ class AIX(Group): for key in kwargs: if key == 'gid' and kwargs[key] is not None: cmd.append('id='+kwargs[key]) - elif key == 'system' and kwargs[key] == 'yes': + elif key == 'system' and kwargs[key] == True: cmd.append('-a') cmd.append(self.name) return self.execute_command(cmd)