Misc cleanup -- moved function out of utils, removed debug statement.
This commit is contained in:
parent
19a2fc00dc
commit
706cfd9ade
3 changed files with 4 additions and 9 deletions
|
@ -239,7 +239,10 @@ class PlaybookCallbacks(object):
|
|||
pass
|
||||
|
||||
def on_task_start(self, name, is_conditional):
|
||||
print banner(utils.task_start_msg(name, is_conditional))
|
||||
msg = "TASK: [%s]" % name
|
||||
if is_conditional:
|
||||
msg = "NOTIFIED: [%s]" % name
|
||||
print banner(msg)
|
||||
|
||||
def on_vars_prompt(self, varname, private=True):
|
||||
msg = 'input for %s: ' % varname
|
||||
|
|
|
@ -64,7 +64,6 @@ class Play(object):
|
|||
self.transport = ds.get('connection', self.playbook.transport)
|
||||
self.tags = ds.get('tags', None)
|
||||
self.gather_facts = ds.get('gather_facts', True)
|
||||
print "self.gather_facts: %s" % self.gather_facts
|
||||
|
||||
self._update_vars_files_for_host(None)
|
||||
|
||||
|
|
|
@ -63,13 +63,6 @@ def smjson(result):
|
|||
result2 = result.copy()
|
||||
return json.dumps(result2, sort_keys=True)
|
||||
|
||||
def task_start_msg(name, conditional):
|
||||
# FIXME: move to callbacks code
|
||||
if conditional:
|
||||
return "NOTIFIED: [%s]" % name
|
||||
else:
|
||||
return "TASK: [%s]" % name
|
||||
|
||||
def regular_generic_msg(hostname, result, oneline, caption):
|
||||
''' output on the result of a module run that is not command '''
|
||||
if not oneline:
|
||||
|
|
Loading…
Reference in a new issue