Merge "tests: remove useless variables in db_utils methods"
This commit is contained in:
commit
8bdf0d476d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user