Workaround allow certs of type dedicated
Prior to this migrating a domain via admin endpoints would fail because "dedicated" cert_type is not allowed. Change-Id: Ifb6ea9a8798894bc66e2d16fd8b8a16436bfdaf4
This commit is contained in:
parent
4c8d9061f1
commit
6eb64473fe
@ -16,7 +16,7 @@
|
||||
from poppy.model import common
|
||||
|
||||
|
||||
VALID_CERT_TYPES = [u'san', u'custom']
|
||||
VALID_CERT_TYPES = [u'san', u'custom', u'dedicated']
|
||||
VALID_STATUS_IN_CERT_DETAIL = [
|
||||
u'deployed',
|
||||
u'create_in_progress',
|
||||
|
@ -70,7 +70,7 @@ class DomainMigrationController(base.Controller, hooks.HookController):
|
||||
except errors.ServiceNotFound:
|
||||
pecan.abort(404, detail='Service {0} could not be found'.format(
|
||||
service_id))
|
||||
except LookupError:
|
||||
except (LookupError, ValueError):
|
||||
pecan.abort(404, detail='Domain {0} could not be found'.format(
|
||||
domain_name))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user