check_mode is a module property
This commit is contained in:
parent
d3cd8f2952
commit
6a68a4b101
1 changed files with 2 additions and 2 deletions
4
user
4
user
|
@ -351,7 +351,7 @@ class User(object):
|
||||||
# skip if no changes to be made
|
# skip if no changes to be made
|
||||||
if len(cmd) == 1:
|
if len(cmd) == 1:
|
||||||
return (None, '', '')
|
return (None, '', '')
|
||||||
elif self.check_mode:
|
elif self.module.check_mode:
|
||||||
return (True, '', '')
|
return (True, '', '')
|
||||||
|
|
||||||
cmd.append(self.name)
|
cmd.append(self.name)
|
||||||
|
@ -959,7 +959,7 @@ class AIX(User):
|
||||||
# skip if no changes to be made
|
# skip if no changes to be made
|
||||||
if len(cmd) == 1:
|
if len(cmd) == 1:
|
||||||
(rc, out, err) = (None, '', '')
|
(rc, out, err) = (None, '', '')
|
||||||
elif self.check_mode:
|
elif self.module.check_mode:
|
||||||
return (True, '', '')
|
return (True, '', '')
|
||||||
else:
|
else:
|
||||||
cmd.append(self.name)
|
cmd.append(self.name)
|
||||||
|
|
Loading…
Reference in a new issue