mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Various cleanup around runner's constructor and how daisy chaining is invoked.
This commit is contained in:
parent
1682dd06c0
commit
d76c8c9c85
2 changed files with 62 additions and 97 deletions
|
@ -258,6 +258,12 @@ def md5(filename):
|
|||
infile.close()
|
||||
return digest.hexdigest()
|
||||
|
||||
def default(value, function):
|
||||
''' syntactic sugar around lazy evaluation of defaults '''
|
||||
if value is None:
|
||||
return function()
|
||||
return value
|
||||
|
||||
####################################################################
|
||||
# option handling code for /usr/bin/ansible and ansible-playbook
|
||||
# below this line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue