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:
Armando Migliaccio 2016-09-07 20:04:33 -07:00 committed by Ihar Hrachyshka
parent dc6508aae2
commit 047c0b5293
1 changed files with 3 additions and 0 deletions

View File

@ -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)