mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Change cow path selection variable from COWPATH to COW_PATH (#34063)
For consistency with other cow-related options, such as `ANSIBLE_COW_SELECTION`, add an underscore to the new `ANSIBLE_COWPATH` option.
This commit is contained in:
parent
f968776d86
commit
95ff8f1a90
2 changed files with 4 additions and 4 deletions
|
@ -56,11 +56,11 @@ ANSIBLE_NOCOWS:
|
||||||
- {key: nocows, section: defaults}
|
- {key: nocows, section: defaults}
|
||||||
type: boolean
|
type: boolean
|
||||||
yaml: {key: display.i_am_no_fun}
|
yaml: {key: display.i_am_no_fun}
|
||||||
ANSIBLE_COWPATH:
|
ANSIBLE_COW_PATH:
|
||||||
name: Set path to cowsay command
|
name: Set path to cowsay command
|
||||||
default: null
|
default: null
|
||||||
description: Specify a custom cowsay path or swap in your cowsay implementation of choice
|
description: Specify a custom cowsay path or swap in your cowsay implementation of choice
|
||||||
env: [{name: ANSIBLE_COWPATH}]
|
env: [{name: ANSIBLE_COW_PATH}]
|
||||||
ini:
|
ini:
|
||||||
- {key: cowpath, section: defaults}
|
- {key: cowpath, section: defaults}
|
||||||
type: string
|
type: string
|
||||||
|
|
|
@ -101,8 +101,8 @@ class Display:
|
||||||
if C.ANSIBLE_NOCOWS:
|
if C.ANSIBLE_NOCOWS:
|
||||||
return
|
return
|
||||||
|
|
||||||
if C.ANSIBLE_COWPATH:
|
if C.ANSIBLE_COW_PATH:
|
||||||
self.b_cowsay = C.ANSIBLE_COWPATH
|
self.b_cowsay = C.ANSIBLE_COW_PATH
|
||||||
else:
|
else:
|
||||||
for b_cow_path in b_COW_PATHS:
|
for b_cow_path in b_COW_PATHS:
|
||||||
if os.path.exists(b_cow_path):
|
if os.path.exists(b_cow_path):
|
||||||
|
|
Loading…
Reference in a new issue