Skip to content

Commit 156950e

Browse files
committed
Check etc only
Signed-off-by: shlao <[email protected]>
1 parent 3b3964d commit 156950e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

insights/specs/datasources/host_key_files.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def host_key_files(broker):
4141
raise SkipComponent()
4242

4343
data_list = []
44-
for key_file in error_loadings:
44+
for key_file in [file for file in error_loadings if file.startswith('/etc/')]:
4545
count = 0
4646
if os.path.exists(key_file):
4747
count = 1

0 commit comments

Comments
 (0)