Various cleanup around runner's constructor and how daisy chaining is invoked.

This commit is contained in:
Michael DeHaan 2012-07-21 16:51:31 -04:00
parent 1682dd06c0
commit d76c8c9c85
2 changed files with 62 additions and 97 deletions

View file

@ -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