Merge "Revised exception for missing passphrase catalog"
This commit is contained in:
commit
fb48f52916
|
@ -84,11 +84,6 @@ Genesis Bundle Exceptions
|
||||||
Passphrase Exceptions
|
Passphrase Exceptions
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
.. autoexception:: pegleg.engine.exceptions.PassphraseSchemaNotFoundException
|
|
||||||
:members:
|
|
||||||
:show-inheritance:
|
|
||||||
:undoc-members:
|
|
||||||
|
|
||||||
.. autoexception:: pegleg.engine.exceptions.PassphraseCatalogNotFoundException
|
.. autoexception:: pegleg.engine.exceptions.PassphraseCatalogNotFoundException
|
||||||
:members:
|
:members:
|
||||||
:show-inheritance:
|
:show-inheritance:
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from pegleg.engine.catalogs.base_catalog import BaseCatalog
|
from pegleg.engine.catalogs.base_catalog import BaseCatalog
|
||||||
from pegleg.engine.exceptions import PassphraseSchemaNotFoundException
|
from pegleg.engine.exceptions import PassphraseCatalogNotFoundException
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
KIND = 'PassphraseCatalog'
|
KIND = 'PassphraseCatalog'
|
||||||
|
@ -45,12 +45,12 @@ class PassphraseCatalog(BaseCatalog):
|
||||||
|
|
||||||
:param str sitename: Name of the environment
|
:param str sitename: Name of the environment
|
||||||
:param list documents: Environment configuration documents
|
:param list documents: Environment configuration documents
|
||||||
:raises PassphraseSchemaNotFoundException: If it cannot find a
|
:raises PassphraseCatalogNotFoundException: If it cannot find a
|
||||||
``pegleg/passphraseCatalog/v1`` document.
|
``pegleg/passphraseCatalog/v1`` document.
|
||||||
"""
|
"""
|
||||||
super(PassphraseCatalog, self).__init__(KIND, sitename, documents)
|
super(PassphraseCatalog, self).__init__(KIND, sitename, documents)
|
||||||
if not self._catalog_docs:
|
if not self._catalog_docs:
|
||||||
raise PassphraseSchemaNotFoundException()
|
raise PassphraseCatalogNotFoundException()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def get_passphrase_names(self):
|
def get_passphrase_names(self):
|
||||||
|
|
|
@ -77,11 +77,6 @@ class IncompletePKIPairError(PeglegBaseException):
|
||||||
message = ("Incomplete keypair set %(kinds)s for name: %(name)s")
|
message = ("Incomplete keypair set %(kinds)s for name: %(name)s")
|
||||||
|
|
||||||
|
|
||||||
class PassphraseSchemaNotFoundException(PeglegBaseException):
|
|
||||||
"""Failed to find schema for Passphrases rendering."""
|
|
||||||
message = ('Could not find Passphrase schema for rendering Passphrases!')
|
|
||||||
|
|
||||||
|
|
||||||
class PassphraseCatalogNotFoundException(PeglegBaseException):
|
class PassphraseCatalogNotFoundException(PeglegBaseException):
|
||||||
"""Failed to find Catalog for Passphrases generation."""
|
"""Failed to find Catalog for Passphrases generation."""
|
||||||
message = ('Could not find the Passphrase Catalog to generate '
|
message = ('Could not find the Passphrase Catalog to generate '
|
||||||
|
|
Loading…
Reference in New Issue