1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

prevent state from changing from head to installed

allows for --HEAD to be included in brew install command
This commit is contained in:
vyrak bunleang 2014-03-17 16:56:54 -06:00
parent 9da26da335
commit f5289deee7

View file

@ -756,8 +756,10 @@ def main():
path = ['/usr/local/bin'] path = ['/usr/local/bin']
state = p['state'] state = p['state']
if state in ('present', 'installed', 'head'): if state in ('present', 'installed'):
state = 'installed' state = 'installed'
if state in ('head'):
state = 'head'
if state in ('latest', 'upgraded'): if state in ('latest', 'upgraded'):
state = 'upgraded' state = 'upgraded'
if state == 'linked': if state == 'linked':