diff options
author | Nils Steinger <git@n-st.de> | 2015-12-05 15:40:49 +0100 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2015-12-07 10:08:13 -0500 |
commit | d85b8adba6aaa449602c4ab239670e0f56c79176 (patch) | |
tree | 5f5560efa71bdcdaccd4695e6d3107297cce167b | |
parent | 8e16b481d0c14af7be342a7b97f85282923c716f (diff) | |
download | ansible-d85b8adba6aaa449602c4ab239670e0f56c79176.tar.gz |
More meaningful string representation for meta tasks (like 'noop' and 'flush_handlers')
-rw-r--r-- | lib/ansible/playbook/task.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index 4f326b628b..21dbc87bec 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -133,7 +133,10 @@ class Task(Base, Conditional, Taggable, Become): def __repr__(self): ''' returns a human readable representation of the task ''' - return "TASK: %s" % self.get_name() + if self.get_name() == 'meta ': + return "TASK: meta (%s)" % self.args['_raw_params'] + else: + return "TASK: %s" % self.get_name() def _preprocess_loop(self, ds, new_ds, k, v): ''' take a lookup plugin name and store it correctly ''' |