This commit is contained in:
Solvik Blum 2019-08-04 19:32:52 +02:00
parent d1f8b68130
commit f2195cf9e6
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47

View file

@ -40,5 +40,7 @@ class Datacenter():
def get(self):
if not hasattr(self.driver, 'get'):
raise Exception("Your driver {} doesn't have a get() function, please fix it".format(self.driver))
raise Exception(
"Your driver {} doesn't have a get() function, please fix it".format(self.driver)
)
return getattr(self.driver, 'get')(self.driver_value, DATACENTER_LOCATION_REGEX)