mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 09:57:33 -02:30
If a csv collector is successful but results in no files, increment anyway
This commit is contained in:
@@ -207,6 +207,10 @@ def gather(dest=None, module=None, subset=None, since=None, until=None, collecti
|
|||||||
files = func(start, full_path=gather_dir, until=end)
|
files = func(start, full_path=gather_dir, until=end)
|
||||||
|
|
||||||
if not files:
|
if not files:
|
||||||
|
if collection_type != 'dry-run':
|
||||||
|
with disable_activity_stream():
|
||||||
|
last_entries[key] = end
|
||||||
|
settings.AUTOMATION_ANALYTICS_LAST_ENTRIES = json.dumps(last_entries)
|
||||||
continue
|
continue
|
||||||
for fpath in files:
|
for fpath in files:
|
||||||
payload = {filename: (fpath, func.__awx_analytics_version__)}
|
payload = {filename: (fpath, func.__awx_analytics_version__)}
|
||||||
|
|||||||
Reference in New Issue
Block a user