mirror of
https://github.com/ansible/awx.git
synced 2026-02-14 01:34:45 -03:30
remove facts_latest in favor of ansible_facts
* Closer align our facts data structure with ansible facts data structure for purposes of ... wait for it ... 2-way fact caching
This commit is contained in:
@@ -1725,6 +1725,13 @@ class HostDetail(RetrieveUpdateDestroyAPIView):
|
||||
serializer_class = HostSerializer
|
||||
|
||||
|
||||
class HostAnsibleFactsDetail(RetrieveAPIView):
|
||||
|
||||
model = Host
|
||||
serializer_class = AnsibleFactsSerializer
|
||||
new_in_320 = True
|
||||
|
||||
|
||||
class InventoryHostsList(SubListCreateAttachDetachAPIView):
|
||||
|
||||
model = Host
|
||||
@@ -1842,15 +1849,6 @@ class HostFactCompareView(SystemTrackingEnforcementMixin, SubDetailAPIView):
|
||||
return Response(self.serializer_class(instance=fact_entry).data)
|
||||
|
||||
|
||||
class HostFactsLatestList(SubListAPIView):
|
||||
|
||||
model = FactLatest
|
||||
parent_model = Host
|
||||
relationship = 'facts_latest'
|
||||
serializer_class = FactSerializer
|
||||
new_in_320 = True
|
||||
|
||||
|
||||
class GroupList(ListCreateAPIView):
|
||||
|
||||
model = Group
|
||||
|
||||
Reference in New Issue
Block a user