mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
Fix TypeError when running a command on a host in a smart inventory (#11768)
Fix TypeError when running a command on a host in a smart inventory See: https://github.com/ansible/awx/issues/11611
This commit is contained in:
parent
fa47e48a15
commit
3ab73ddf84
@ -19,7 +19,7 @@ class MeshVisualizer(APIView):
|
||||
|
||||
data = {
|
||||
'nodes': InstanceNodeSerializer(Instance.objects.all(), many=True).data,
|
||||
'links': InstanceLinkSerializer(InstanceLink.objects.all(), many=True).data,
|
||||
'links': InstanceLinkSerializer(InstanceLink.objects.select_related('target', 'source'), many=True).data,
|
||||
}
|
||||
|
||||
return Response(data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user