Merge "Remove extraneous db method image_property_update"
This commit is contained in:
commit
c5a1635a6b
@ -640,7 +640,7 @@ def _set_properties_for_image(context, image_ref, properties,
|
||||
'value': value}
|
||||
if name in orig_properties:
|
||||
prop_ref = orig_properties[name]
|
||||
image_property_update(context, prop_ref, prop_values,
|
||||
_image_property_update(context, prop_ref, prop_values,
|
||||
session=session)
|
||||
else:
|
||||
image_property_create(context, prop_values, session=session)
|
||||
@ -658,11 +658,6 @@ def image_property_create(context, values, session=None):
|
||||
return _image_property_update(context, prop_ref, values, session=session)
|
||||
|
||||
|
||||
def image_property_update(context, prop_ref, values, session=None):
|
||||
"""Update an ImageProperty object"""
|
||||
return _image_property_update(context, prop_ref, values, session=session)
|
||||
|
||||
|
||||
def _image_property_update(context, prop_ref, values, session=None):
|
||||
"""
|
||||
Used internally by image_property_create and image_property_update
|
||||
|
Loading…
Reference in New Issue
Block a user