Fix delete attribute api bug
Closes-Bug: #2020179 Change-Id: I7a97cecff3bdfa1ee80bb1d2ee5f8a9e9d1448cf
This commit is contained in:
parent
b4ca84cd90
commit
51df465d1b
@ -163,4 +163,5 @@ class AttributesController(base.CyborgController,
|
||||
"""
|
||||
LOG.info('[attributes] delete by uuid: %s.', uuid)
|
||||
context = pecan.request.context
|
||||
objects.Attribute.destroy(context, uuid)
|
||||
api_obj_attribute = objects.Attribute.get(context, uuid)
|
||||
api_obj_attribute.destroy(context)
|
||||
|
Loading…
Reference in New Issue
Block a user