Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Created May 8, 2015 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmcspadden/22d85275dff9149ef8ae to your computer and use it in GitHub Desktop.
Save nmcspadden/22d85275dff9149ef8ae to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import csv
import os
MUNKI_REPO = "/Users/Shared/munki/manifests"
with open('serials.csv', mode='r') as infile:
reader = csv.reader(infile)
keyDict = dict(reader)
for key in keyDict.keys():
# f = open(os.path.join(MUNKI_REPO, str(key)), 'w')
# f.close()
print key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment