Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Workaround allow certs of type dedicated
Browse files Browse the repository at this point in the history
Prior to this migrating a domain via admin endpoints
would fail because "dedicated" cert_type is not allowed.

Change-Id: Ifb6ea9a8798894bc66e2d16fd8b8a16436bfdaf4
  • Loading branch information
isaacm committed Jun 23, 2016
1 parent 4c8d906 commit 6eb6447
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poppy/model/ssl_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion poppy/transport/pecan/controllers/v1/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def post(self):
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))

Expand Down

0 comments on commit 6eb6447

Please sign in to comment.