Browse Source

Merge "Revised exception for missing passphrase catalog"

Zuul 2 weeks ago
parent
commit
fb48f52916

+ 0
- 5
doc/source/exceptions.rst View File

@@ -84,11 +84,6 @@ Genesis Bundle Exceptions
84 84
 Passphrase Exceptions
85 85
 ---------------------
86 86
 
87
-.. autoexception:: pegleg.engine.exceptions.PassphraseSchemaNotFoundException
88
-   :members:
89
-   :show-inheritance:
90
-   :undoc-members:
91
-
92 87
 .. autoexception:: pegleg.engine.exceptions.PassphraseCatalogNotFoundException
93 88
    :members:
94 89
    :show-inheritance:

+ 3
- 3
pegleg/engine/catalogs/passphrase_catalog.py View File

@@ -15,7 +15,7 @@
15 15
 import logging
16 16
 
17 17
 from pegleg.engine.catalogs.base_catalog import BaseCatalog
18
-from pegleg.engine.exceptions import PassphraseSchemaNotFoundException
18
+from pegleg.engine.exceptions import PassphraseCatalogNotFoundException
19 19
 
20 20
 LOG = logging.getLogger(__name__)
21 21
 KIND = 'PassphraseCatalog'
@@ -45,12 +45,12 @@ class PassphraseCatalog(BaseCatalog):
45 45
 
46 46
         :param str sitename: Name of the environment
47 47
         :param list documents: Environment configuration documents
48
-        :raises PassphraseSchemaNotFoundException: If it cannot find a
48
+        :raises PassphraseCatalogNotFoundException: If it cannot find a
49 49
         ``pegleg/passphraseCatalog/v1`` document.
50 50
         """
51 51
         super(PassphraseCatalog, self).__init__(KIND, sitename, documents)
52 52
         if not self._catalog_docs:
53
-            raise PassphraseSchemaNotFoundException()
53
+            raise PassphraseCatalogNotFoundException()
54 54
 
55 55
     @property
56 56
     def get_passphrase_names(self):

+ 0
- 5
pegleg/engine/exceptions.py View File

@@ -77,11 +77,6 @@ class IncompletePKIPairError(PeglegBaseException):
77 77
     message = ("Incomplete keypair set %(kinds)s for name: %(name)s")
78 78
 
79 79
 
80
-class PassphraseSchemaNotFoundException(PeglegBaseException):
81
-    """Failed to find schema for Passphrases rendering."""
82
-    message = ('Could not find Passphrase schema for rendering Passphrases!')
83
-
84
-
85 80
 class PassphraseCatalogNotFoundException(PeglegBaseException):
86 81
     """Failed to find Catalog for Passphrases generation."""
87 82
     message = ('Could not find the Passphrase Catalog to generate '

Loading…
Cancel
Save