mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Check system tracking enabled before trying to fetch fact versions
This commit is contained in:
parent
8e59c3506a
commit
609ded80e2
@ -1127,6 +1127,10 @@ class HostFactVersionsList(MongoListAPIView):
|
||||
to_spec = self.request.QUERY_PARAMS.get('to', None)
|
||||
module_spec = self.request.QUERY_PARAMS.get('module', None)
|
||||
|
||||
if not feature_enabled("system_tracking"):
|
||||
raise LicenseForbids("Your license does not permit use "
|
||||
"of system tracking.")
|
||||
|
||||
host = self.get_parent_object()
|
||||
self.check_parent_access(host)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user