diff options
author | Thomas Duval <thomas.duval@orange.com> | 2018-01-15 21:12:32 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2018-01-15 21:12:32 +0100 |
commit | ba90e446c6d5a51c9ed392416f90b7bb56d11603 (patch) | |
tree | d4f2f02ace9af594fbe6abce3824cfb494ece998 /python_moonutilities | |
parent | 1da8f2e5f28813a90ecc329462dcc647ce757494 (diff) |
Add th ability to (un)load wrapper components through API
Change-Id: I58a25dbc0479e416d471115885dab7ccfb27e18a
Diffstat (limited to 'python_moonutilities')
-rw-r--r-- | python_moonutilities/Changelog | 4 | ||||
-rw-r--r-- | python_moonutilities/python_moonutilities/__init__.py | 2 | ||||
-rw-r--r-- | python_moonutilities/python_moonutilities/exceptions.py | 35 |
3 files changed, 40 insertions, 1 deletions
diff --git a/python_moonutilities/Changelog b/python_moonutilities/Changelog index 2c4c02a8..ffc03809 100644 --- a/python_moonutilities/Changelog +++ b/python_moonutilities/Changelog @@ -78,3 +78,7 @@ CHANGES 1.4.5 ----- - Add PdpKeystoneMappingConflict exception + +1.4.6 +----- +- Add WrapperConflict, PipelineConflict, SlaveNameUnknown exceptions diff --git a/python_moonutilities/python_moonutilities/__init__.py b/python_moonutilities/python_moonutilities/__init__.py index bcd7e545..741ba4f6 100644 --- a/python_moonutilities/python_moonutilities/__init__.py +++ b/python_moonutilities/python_moonutilities/__init__.py @@ -3,6 +3,6 @@ # license which can be found in the file 'LICENSE' in this package distribution # or at 'http://www.apache.org/licenses/LICENSE-2.0'. -__version__ = "1.4.5" +__version__ = "1.4.6" diff --git a/python_moonutilities/python_moonutilities/exceptions.py b/python_moonutilities/python_moonutilities/exceptions.py index 6db7bf01..1298f9e4 100644 --- a/python_moonutilities/python_moonutilities/exceptions.py +++ b/python_moonutilities/python_moonutilities/exceptions.py @@ -535,6 +535,41 @@ class ContainerMissing(DockerError): logger = "ERROR" +class WrapperConflict(MoonError): + description = _("A Wrapper already exist for the specified slave.") + code = 409 + title = 'Wrapper conflict' + logger = "ERROR" + + +class PipelineConflict(MoonError): + description = _("A Pipeline already exist for the specified slave.") + code = 409 + title = 'Pipeline conflict' + logger = "ERROR" + + +class PipelineUnknown(MoonError): + description = _("This Pipeline is unknown from the system.") + code = 400 + title = 'Pipeline Unknown' + logger = "ERROR" + + +class WrapperUnknown(MoonError): + description = _("This Wrapper is unknown from the system.") + code = 400 + title = 'Wrapper Unknown' + logger = "ERROR" + + +class SlaveNameUnknown(MoonError): + description = _("The slave is unknown.") + code = 400 + title = 'Slave Unknown' + logger = "Error" + + class PdpUnknown(MoonError): description = _("The pdp is unknown.") code = 400 |