These fields are booleans.

This commit is contained in:
Michael DeHaan 2013-08-10 18:16:01 -04:00
parent 633abca916
commit baffa8df72
3 changed files with 7 additions and 7 deletions

View file

@ -48,12 +48,10 @@ def load_callback_plugins():
callback_plugins = [x for x in utils.plugins.callback_loader.all()]
def get_cowsay_info():
if constants.ANSIBLE_NOCOWS is not None:
if constants.ANSIBLE_NOCOWS:
return (None, None)
cowsay = None
if os.getenv("ANSIBLE_NOCOWS") is not None:
cowsay = None
elif os.path.exists("/usr/bin/cowsay"):
if os.path.exists("/usr/bin/cowsay"):
cowsay = "/usr/bin/cowsay"
elif os.path.exists("/usr/games/cowsay"):
cowsay = "/usr/games/cowsay"