diff options
author | Matt Bachmann <bachmann.matt@gmail.com> | 2017-12-03 14:33:18 -0500 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2017-12-19 15:39:38 -0500 |
commit | f64b276f6ab2cc5bc85f7ad929aaca59a9e6e53e (patch) | |
tree | e1edd829063e5937ef967bae5e61501b5818894f /lib/ansible/utils/display.py | |
parent | 96335b12bb2a364927be59f78f88f7263f732db1 (diff) | |
download | ansible-f64b276f6ab2cc5bc85f7ad929aaca59a9e6e53e.tar.gz |
Add option allowing the user to specify a custom cowpath
This allows the user to use custom cowsay implementations without shadowing common cowsay paths
Diffstat (limited to 'lib/ansible/utils/display.py')
-rw-r--r-- | lib/ansible/utils/display.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ansible/utils/display.py b/lib/ansible/utils/display.py index d40d8dc2db..593644ded4 100644 --- a/lib/ansible/utils/display.py +++ b/lib/ansible/utils/display.py @@ -98,7 +98,12 @@ class Display: self._set_column_width() def set_cowsay_info(self): - if not C.ANSIBLE_NOCOWS: + if C.ANSIBLE_NOCOWS: + return + + if C.ANSIBLE_COWPATH: + self.b_cowsay = C.ANSIBLE_COWPATH + else: for b_cow_path in b_COW_PATHS: if os.path.exists(b_cow_path): self.b_cowsay = b_cow_path |