Commit 4b359aa6 by Chif Gergő

Serialize instance in retrieve

parent 9661b18e
Pipeline #1068 failed with stage
in 1 minute 29 seconds
......@@ -101,7 +101,7 @@ class InstanceViewSet(AuthorizationMixin, ViewSet):
return Response({"error": "No permission to access the Virtual Machine."},
status=status.HTTP_401_UNAUTHORIZED)
instance.update_status()
return Response(instance)
return Response(InstanceSerializer(instance).data)
# PUT method for updating the instance own properties BUT not the related fields
def update(self, request, pk, format=None):
......
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 sign in to comment