mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
check_mode is a module property
This commit is contained in:
parent
ab389d8908
commit
4a137641d2
1 changed files with 2 additions and 2 deletions
|
@ -351,7 +351,7 @@ class User(object):
|
|||
# skip if no changes to be made
|
||||
if len(cmd) == 1:
|
||||
return (None, '', '')
|
||||
elif self.check_mode:
|
||||
elif self.module.check_mode:
|
||||
return (True, '', '')
|
||||
|
||||
cmd.append(self.name)
|
||||
|
@ -959,7 +959,7 @@ class AIX(User):
|
|||
# skip if no changes to be made
|
||||
if len(cmd) == 1:
|
||||
(rc, out, err) = (None, '', '')
|
||||
elif self.check_mode:
|
||||
elif self.module.check_mode:
|
||||
return (True, '', '')
|
||||
else:
|
||||
cmd.append(self.name)
|
||||
|
|
Loading…
Reference in a new issue