mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
skip non-files when consuming events synced from isolated hosts
see: https://github.com/ansible/awx/issues/6675
This commit is contained in:
@@ -280,7 +280,7 @@ class IsolatedManager(object):
|
||||
if os.path.exists(events_path):
|
||||
for event in set(os.listdir(events_path)) - self.handled_events:
|
||||
path = os.path.join(events_path, event)
|
||||
if os.path.exists(path):
|
||||
if os.path.exists(path) and os.path.isfile(path):
|
||||
try:
|
||||
event_data = json.load(
|
||||
open(os.path.join(events_path, event), 'r')
|
||||
|
||||
Reference in New Issue
Block a user