Merge pull request #37902 from gtmanfred/develop

use opts for metadata grains
This commit is contained in:
Erik Johnson 2016-11-26 16:13:45 -06:00 committed by GitHub
commit 941fb8aa8b

View File

@ -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)