Add importing modules instead of classes
This patch removes import of classes and replaces them with import of modules. Change-Id: Id2502cf96ac7227cf1036cd54a74f3d7acd83479 Closes-Bug: #1594434
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
from ceilometerclient.exc import HTTPUnauthorized
|
||||
from ceilometerclient import exc
|
||||
|
||||
from watcher.common import clients
|
||||
|
||||
@@ -68,7 +68,7 @@ class CeilometerHelper(object):
|
||||
def query_retry(self, f, *args, **kargs):
|
||||
try:
|
||||
return f(*args, **kargs)
|
||||
except HTTPUnauthorized:
|
||||
except exc.HTTPUnauthorized:
|
||||
self.osc.reset_clients()
|
||||
self.ceilometer = self.osc.ceilometer()
|
||||
return f(*args, **kargs)
|
||||
|
||||
Reference in New Issue
Block a user