Skip to content

Instantly share code, notes, and snippets.

@fujin
Created March 18, 2016 23:52
Show Gist options
  • Select an option

  • Save fujin/05305140682efd5c5c72 to your computer and use it in GitHub Desktop.

Select an option

Save fujin/05305140682efd5c5c72 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from titan.pantheon import workflow_utilities
f = open('freeze-sites.txt', 'r')
for line in f.readlines():
for wf_res in workflow_utilities.create_site_workflow(line.strip(), 'freeze_site', block_until_complete=True):
print(wf_res)
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment