mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #37445 from twangboy/fix_import_error_2016.3
Check for Server os before checking [DO NOT MERGE FORWARD]
This commit is contained in:
commit
afb1b3cee5
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ def _check_server_manager():
|
|||
|
||||
Returns: True if import is successful, otherwise returns False
|
||||
'''
|
||||
if 'Server' not in __grains__['osrelease']:
|
||||
return False
|
||||
|
||||
return not __salt__['cmd.retcode']('Import-Module ServerManager',
|
||||
shell='powershell',
|
||||
python_shell=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue