Merge "Add the introduce of the command "magnum help ca-sign""
This commit is contained in:
@@ -301,6 +301,7 @@ def do_ca_show(cs, args):
|
|||||||
metavar='<bay>',
|
metavar='<bay>',
|
||||||
help='ID or name of the bay.')
|
help='ID or name of the bay.')
|
||||||
def do_ca_sign(cs, args):
|
def do_ca_sign(cs, args):
|
||||||
|
"""Generate the CA certificate for a bay."""
|
||||||
bay = cs.bays.get(args.bay)
|
bay = cs.bays.get(args.bay)
|
||||||
if bay.status not in ['CREATE_COMPLETE', 'UPDATE_COMPLETE']:
|
if bay.status not in ['CREATE_COMPLETE', 'UPDATE_COMPLETE']:
|
||||||
print('Bay status for %s is: %s. We can not create a %s there'
|
print('Bay status for %s is: %s. We can not create a %s there'
|
||||||
|
Reference in New Issue
Block a user