mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Moving setting of options values to after play again
Moving this above the play setting means that any default values set in play (like connection) override any corresponding CLI option, which is wrong. Generally CLI options should override things set in playbooks
This commit is contained in:
parent
ed601f964d
commit
d71834d1d2
1 changed files with 3 additions and 3 deletions
|
@ -64,14 +64,14 @@ class ConnectionInformation:
|
|||
self.no_log = False
|
||||
self.check_mode = False
|
||||
|
||||
if play:
|
||||
self.set_play(play)
|
||||
|
||||
#TODO: just pull options setup to above?
|
||||
# set options before play to allow play to override them
|
||||
if options:
|
||||
self.set_options(options)
|
||||
|
||||
if play:
|
||||
self.set_play(play)
|
||||
|
||||
|
||||
def __repr__(self):
|
||||
value = "CONNECTION INFO:\n"
|
||||
|
|
Loading…
Reference in a new issue