Ensure UnknownProvisioningError can be printed
Implement __str__ to show the underlying error during log traces. Change-Id: I829d787ba0d8666b09abc0307abb47fe9699c247 Related-bug: #1612798
This commit is contained in:
committed by
Ihar Hrachyshka
parent
dc6508aae2
commit
047c0b5293
@@ -35,3 +35,6 @@ class UnknownProvisioningError(Exception):
|
||||
self.network_id = network_id
|
||||
self.router_id = router_id
|
||||
self.subnets = subnets
|
||||
|
||||
def __str__(self):
|
||||
return str(self.error)
|
||||
|
||||
Reference in New Issue
Block a user