public
Created

  • Download Gist
gistfile1.py
Python
1 2 3 4 5 6 7 8
for configDict in yaml.load_all(stream):
if configDict['instance']['id'] == instance:
#assign local variables
 
TEST_CONFIG_FILE.write("id: " + configDict['instance']['saltId'] + "\n")
yaml.dump(configDict['instance']['grains'], TEST_CONFIG_FILE)
 
TEST_CONFIG_FILE.close()

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.