diff --git a/tempest_lib/auth.py b/tempest_lib/auth.py index 47abb65..1d23d31 100644 --- a/tempest_lib/auth.py +++ b/tempest_lib/auth.py @@ -528,7 +528,8 @@ class Credentials(object): if key in self.ATTRIBUTES: setattr(self, key, attr[key]) else: - raise exceptions.InvalidCredentials + msg = '%s is not a valid attr for %s' % (key, self.__class__) + raise exceptions.InvalidCredentials(msg) def __str__(self): """Represent only attributes included in self.ATTRIBUTES"""