Commit 854b57be authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Only return the updated metadata

parent 52e13b62
......@@ -220,7 +220,7 @@ def update_metadata(request, image_id):
except ImageMetadata.DoesNotExist:
pass # Ignore non-existent metadata
return render_metadata(request, metadata, status=201)
return render_metadata(request, updated, status=201)
@api_method('GET')
def get_metadata_item(request, image_id, key):
......
......@@ -370,7 +370,7 @@ def update_metadata(request, server_id):
except VirtualMachineMetadata.DoesNotExist:
pass # Ignore non-existent metadata
return render_metadata(request, metadata, status=201)
return render_metadata(request, updated, status=201)
@api_method('GET')
def get_metadata_item(request, server_id, key):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment