Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4391218
find all precise
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
chasemp
Aug 23 2016, 1:32 PM
2016-08-23 13:32:45 (UTC+0)
Size
639 B
Referenced Files
None
Subscribers
None
find all precise
View Options
#!/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
Details
Attached
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)
Attached To
Mode
P3876 find all precise
Attached
Detach File
Event Timeline
Log In to Comment