mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Add option allowing the user to specify a custom cowpath
This allows the user to use custom cowsay implementations without shadowing common cowsay paths
This commit is contained in:
parent
96335b12bb
commit
f64b276f6a
2 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue