From 3bf1944203c70abfbe8de9733f0033a17585aafc Mon Sep 17 00:00:00 2001 From: Peter Stachowski Date: Sun, 18 Sep 2016 17:57:07 +0000 Subject: [PATCH] Fix call to to_mb In a recent change (https://review.openstack.org/#/c/364431 ) the code for to_mb was moved, however one of the references to it was not changed. Found with pylint and fixed. Change-Id: I5a2178abaab4aea56e69165428ad27c5196d26f7 Closes-Bug: #1624908 --- .../strategies/restore/experimental/couchbase_impl.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trove/guestagent/strategies/restore/experimental/couchbase_impl.py b/trove/guestagent/strategies/restore/experimental/couchbase_impl.py index b2d387516b..f2aad173d2 100644 --- a/trove/guestagent/strategies/restore/experimental/couchbase_impl.py +++ b/trove/guestagent/strategies/restore/experimental/couchbase_impl.py @@ -26,7 +26,6 @@ from trove.common import utils from trove.guestagent.common import operating_system from trove.guestagent.datastore.experimental.couchbase import service from trove.guestagent.datastore.experimental.couchbase import system -from trove.guestagent import dbaas from trove.guestagent.strategies.restore import base @@ -77,7 +76,7 @@ class CbBackup(base.RestoreRunner): bucket_type = d[i]["bucketType"] if bucket_type == "membase": bucket_type = "couchbase" - ram = int(dbaas.to_mb(d[i]["quota"]["ram"])) + ram = int(utils.to_mb(d[i]["quota"]["ram"])) auth_type = d[i]["authType"] password = d[i]["saslPassword"] port = d[i]["proxyPort"]