mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Fixing up some check-mode stuff
This commit is contained in:
parent
ad53b6f36a
commit
cf51d0a790
11 changed files with 26 additions and 68 deletions
|
@ -28,11 +28,8 @@ class ActionModule(ActionBase):
|
|||
def run(self, tmp=None, task_vars=None):
|
||||
''' handler for file transfer operations '''
|
||||
|
||||
# FIXME: noop stuff still needs to be sorted out
|
||||
#if self.runner.noop_on_check(inject):
|
||||
# # in check mode, always skip this module
|
||||
# return ReturnData(conn=conn, comm_ok=True,
|
||||
# result=dict(skipped=True, msg='check mode not supported for this module'))
|
||||
if self._connection_info.check_mode:
|
||||
return dict(skipped=True, msg='check mode not supported for this module')
|
||||
|
||||
if not tmp:
|
||||
tmp = self._make_tmp_path()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue