mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-30 04:00:21 -07:00
Moving ConnectionInformation -> PlayContext
Also making PlayContext a child class of the Playbook Base class, which gives it access to all of the FieldAttribute code to ensure field values are correctly typed after post_validation Fixes #11381
This commit is contained in:
parent
919aaa5c42
commit
e64989beb4
36 changed files with 477 additions and 459 deletions
|
@ -179,7 +179,7 @@ class ActionModule(ActionBase):
|
|||
# diff = {}
|
||||
diff = {}
|
||||
|
||||
if self._connection_info.check_mode:
|
||||
if self._play_context.check_mode:
|
||||
self._remove_tempfile_if_content_defined(content, content_tempfile)
|
||||
# FIXME: diff stuff
|
||||
#diffs.append(diff)
|
||||
|
@ -199,7 +199,7 @@ class ActionModule(ActionBase):
|
|||
self._remove_tempfile_if_content_defined(content, content_tempfile)
|
||||
|
||||
# fix file permissions when the copy is done as a different user
|
||||
if self._connection_info.become and self._connection_info.become_user != 'root':
|
||||
if self._play_context.become and self._play_context.become_user != 'root':
|
||||
self._remote_chmod('a+r', tmp_src, tmp)
|
||||
|
||||
if raw:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue