diff options
author | Ruan HE <ruan.he@orange.com> | 2018-01-10 20:38:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-10 20:38:11 +0000 |
commit | 0129d960d4c39d96e775674264c06908e121b7ed (patch) | |
tree | 9f90e4e28a1e5bbee4ee478d9c805ecf26ea2ab2 /python_moonutilities | |
parent | 4efa492ad05bdcd19f80c7717dad94af896294fe (diff) | |
parent | 1e3c19b82374585ed7261bcb1abd6ddd38b5d9f8 (diff) |
Merge "Refactor moon_authz"
Diffstat (limited to 'python_moonutilities')
-rw-r--r-- | python_moonutilities/python_moonutilities/exceptions.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/python_moonutilities/python_moonutilities/exceptions.py b/python_moonutilities/python_moonutilities/exceptions.py index 2d689287..6db7bf01 100644 --- a/python_moonutilities/python_moonutilities/exceptions.py +++ b/python_moonutilities/python_moonutilities/exceptions.py @@ -443,6 +443,13 @@ class MetaRuleExisting(AdminMetaRule): logger = "ERROR" +class MetaRuleContentError(AdminMetaRule): + description = _("Invalid content of pdp.") + code = 400 + title = 'Meta Rule Error' + logger = "ERROR" + + class RuleExisting(AdminRule): description = _("The rule already exists.") code = 400 @@ -542,6 +549,13 @@ class PdpExisting(MoonError): logger = "Error" +class PdpContentError(MoonError): + description = _("Invalid content of pdp.") + code = 409 + title = 'Pdp Error' + logger = "Error" + + class PdpKeystoneMappingConflict(MoonError): description = _("A pdp is already mapped to that Keystone project.") code = 409 @@ -561,4 +575,3 @@ class PolicyExisting(MoonError): code = 409 title = 'Policy Error' logger = "Error" - |