From 90e51b2a5e8c3a0c09f762777c6acaa98f57434e Mon Sep 17 00:00:00 2001 From: Serge van Ginderachter Date: Thu, 14 Mar 2013 10:55:44 +0100 Subject: [PATCH] rename user option nonunique tot non_unique --- user | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/user b/user index 9646df675bd..1511b3aca41 100644 --- a/user +++ b/user @@ -41,7 +41,7 @@ options: required: false description: - Optionally sets the I(UID) of the user. - nonunique: + non_unique: required: false default: "no" choices: [ "yes", "no" ] @@ -204,7 +204,7 @@ class User(object): self.state = module.params['state'] self.name = module.params['name'] self.uid = module.params['uid'] - self.nonunique = module.params['nonunique'] + self.non_unique = module.params['non_unique'] self.group = module.params['group'] self.groups = module.params['groups'] self.comment = module.params['comment'] @@ -253,7 +253,7 @@ class User(object): cmd.append('-u') cmd.append(self.uid) - if self.nonunique: + if self.non_unique: cmd.append('-o') if self.group is not None: @@ -306,7 +306,7 @@ class User(object): cmd.append('-u') cmd.append(self.uid) - if self.nonunique: + if self.non_unique: cmd.append('-o') if self.group is not None: @@ -546,7 +546,7 @@ class FreeBsdUser(User): cmd.append('-u') cmd.append(self.uid) - if self.nonunique: + if self.non_unique: cmd.append('-o') if self.comment is not None: @@ -609,7 +609,7 @@ class FreeBsdUser(User): cmd.append('-u') cmd.append(self.uid) - if self.nonunique: + if self.non_unique: cmd.append('-o') if self.comment is not None and info[4] != self.comment: @@ -712,7 +712,7 @@ class SunOS(User): cmd.append('-u') cmd.append(self.uid) - if self.nonunique: + if self.non_unique: cmd.append('-o') if self.group is not None: @@ -776,7 +776,7 @@ class SunOS(User): cmd.append('-u') cmd.append(self.uid) - if self.nonunique: + if self.non_unique: cmd.append('-o') if self.group is not None: @@ -884,7 +884,7 @@ class AIX(User): cmd.append('-u') cmd.append(self.uid) - if self.nonunique: + if self.non_unique: cmd.append('-o') if self.group is not None: @@ -940,7 +940,7 @@ class AIX(User): cmd.append('-u') cmd.append(self.uid) - if self.nonunique: + if self.non_unique: cmd.append('-o') if self.group is not None: @@ -1028,7 +1028,7 @@ def main(): state=dict(default='present', choices=['present', 'absent'], type='str'), name=dict(required=True, aliases=['user'], type='str'), uid=dict(default=None, type='str'), - nonunique=dict(default='no', type='bool'), + non_unique=dict(default='no', type='bool'), group=dict(default=None, type='str'), groups=dict(default=None, type='str'), comment=dict(default=None, type='str'),