Merge "Add the introduce of the command "magnum help ca-sign""

This commit is contained in:
Jenkins
2015-10-20 10:15:01 +00:00
committed by Gerrit Code Review

View File

@@ -301,6 +301,7 @@ def do_ca_show(cs, args):
metavar='<bay>',
help='ID or name of the bay.')
def do_ca_sign(cs, args):
"""Generate the CA certificate for a bay."""
bay = cs.bays.get(args.bay)
if bay.status not in ['CREATE_COMPLETE', 'UPDATE_COMPLETE']:
print('Bay status for %s is: %s. We can not create a %s there'