Commit 08433892 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review

Merge "Gnocchi: fix ResourcesDefinitionException for py3"

parents 73e141b4 15f52747
......@@ -83,12 +83,8 @@ def log_and_ignore_unexpected_workflow_error(func):
class ResourcesDefinitionException(Exception):
def __init__(self, message, definition_cfg):
super(ResourcesDefinitionException, self).__init__(message)
self.definition_cfg = definition_cfg
def __str__(self):
return '%s %s: %s' % (self.__class__.__name__,
self.definition_cfg, self.message)
msg = '%s %s: %s' % (self.__class__.__name__, definition_cfg, message)
super(ResourcesDefinitionException, self).__init__(msg)
class ResourcesDefinition(object):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment