mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Various cleanup around runner's constructor and how daisy chaining is invoked.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user