mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
0249d9d67f
commit
534e9ef4d6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue