Update stack
This commit is contained in:
parent
ab01dec573
commit
a042d6f550
4
stack
4
stack
@ -39,11 +39,11 @@ def main():
|
|||||||
|
|
||||||
#do this first so people can see the help message...
|
#do this first so people can see the help message...
|
||||||
args = opts.parse()
|
args = opts.parse()
|
||||||
prog_name = (sys.argv[0])
|
prog_name = sys.argv[0]
|
||||||
|
|
||||||
#will need root to setup openstack
|
#will need root to setup openstack
|
||||||
if not sh.got_root():
|
if not sh.got_root():
|
||||||
rest_args = sys.argv[1:len(sys.argv)]
|
rest_args = sys.argv[1:]
|
||||||
print("This program requires a user with sudo access.")
|
print("This program requires a user with sudo access.")
|
||||||
msg = "Perhaps you should try %s %s" % \
|
msg = "Perhaps you should try %s %s" % \
|
||||||
(utils.color_text("sudo %s" % (prog_name), "red", True), " ".join(rest_args))
|
(utils.color_text("sudo %s" % (prog_name), "red", True), " ".join(rest_args))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user