Page MenuHomePhabricator

find all precise

Authored By
chasemp
Aug 23 2016, 1:32 PM
Size
639 B
Referenced Files
None
Subscribers
None

find all precise

#!/usr/bin/python
import argparse
import fileinput
import subprocess
import novastats
parser = argparse.ArgumentParser(description='Check salt status for instances')
parser.add_argument('--project',
dest='project',
help='limit stats to a single project',
default=None)
args = parser.parse_args()
bigDict = novastats.instanceData(args.project)
good = []
bad = []
broken = []
down = []
for ID in bigDict.keys():
if bigDict[ID]['image'].lower().find('precise') != -1:
print "%s:%s %s %s" % (bigDict[ID]['tenant_id'], bigDict[ID]['name'], ID, bigDict[ID]['image'])

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3934219
Default Alt Text
find all precise (639 B)

Event Timeline