mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #37902 from gtmanfred/develop
use opts for metadata grains
This commit is contained in:
commit
941fb8aa8b
@ -30,7 +30,7 @@ HOST = 'http://{0}/'.format(IP)
|
||||
|
||||
|
||||
def __virtual__():
|
||||
if __salt__['config.get']('metadata_server_grains', False) is False:
|
||||
if __opts__.get('metadata_server_grains', False) is False:
|
||||
return False
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.settimeout(.1)
|
||||
|
Loading…
Reference in New Issue
Block a user