Revision f93427cd daemons/ganeti-rapi
b/daemons/ganeti-rapi | ||
---|---|---|
187 | 187 |
"""Initial checks whether to run or exit with a failure. |
188 | 188 |
|
189 | 189 |
""" |
190 |
if len(args) != 0:
|
|
191 |
print >> sys.stderr, "Usage: %s [-f] [-d] [-p port] [-b ADDRESS]" % \
|
|
192 |
sys.argv[0]
|
|
190 |
if args: # rapi doesn't take any arguments
|
|
191 |
print >> sys.stderr, ("Usage: %s [-f] [-d] [-p port] [-b ADDRESS]" %
|
|
192 |
sys.argv[0])
|
|
193 | 193 |
sys.exit(constants.EXIT_FAILURE) |
194 | 194 |
|
195 | 195 |
ssconf.CheckMaster(options.debug) |
Also available in: Unified diff