Revision 3a24c527 scripts/gnt-job
b/scripts/gnt-job | ||
---|---|---|
28 | 28 |
|
29 | 29 |
from ganeti.cli import * |
30 | 30 |
from ganeti import opcodes |
31 |
from ganeti import logger |
|
32 | 31 |
from ganeti import constants |
33 | 32 |
from ganeti import utils |
34 | 33 |
from ganeti import errors |
... | ... | |
103 | 102 |
fields=selected_fields, unitfields=unitfields, |
104 | 103 |
numfields=numfields, data=output) |
105 | 104 |
for line in data: |
106 |
print line
|
|
105 |
ToStdout(line)
|
|
107 | 106 |
|
108 | 107 |
return 0 |
109 | 108 |
|
... | ... | |
146 | 145 |
""" |
147 | 146 |
def format(level, text): |
148 | 147 |
"""Display the text indented.""" |
149 |
print "%s%s" % (" " * level, text)
|
|
148 |
ToStdout("%s%s", " " * level, text)
|
|
150 | 149 |
|
151 | 150 |
def result_helper(value): |
152 | 151 |
"""Format a result field in a nice way.""" |
Also available in: Unified diff