Merge "tests: remove useless variables in db_utils methods"

This commit is contained in:
Jenkins 2017-01-17 11:08:09 +00:00 committed by Gerrit Code Review
commit 8bdf0d476d
1 changed files with 0 additions and 11 deletions

View File

@ -88,23 +88,12 @@ def create_share(**kwargs):
def create_share_instance(**kwargs):
"""Create a share instance object."""
instance = {
'host': 'fake',
'status': constants.STATUS_CREATING,
}
instance.update(kwargs)
return db.share_instance_create(context.get_admin_context(),
kwargs.pop('share_id'), kwargs)
def create_share_replica(**kwargs):
"""Create a share replica object."""
replica = {
'host': 'fake',
'status': constants.STATUS_CREATING,
}
replica.update(kwargs)
if 'share_id' not in kwargs:
share = create_share()