Minor fix in ports state __virtual__ function

The if statement should have been checking to see if 'ports.install' is
in the __salt__ dict. As it was before this commit, the second half of
the if statement would always resolve to True.
This commit is contained in:
Erik Johnson 2013-11-14 10:22:37 -06:00
parent 0249d9d67f
commit 534e9ef4d6

View file

@ -29,7 +29,7 @@ log = logging.getLogger(__name__)
def __virtual__():
if __grains__.get('os', '') == 'FreeBSD' and 'ports.install':
if __grains__.get('os', '') == 'FreeBSD' and 'ports.install' in __salt__:
return 'ports'
return False