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
This commit is contained in:
Peter Stachowski 2016-09-18 17:57:07 +00:00
parent 2808e1af46
commit 3bf1944203

View File

@ -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"]