summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker
diff options
context:
space:
mode:
authorMiciah Masters <miciah.masters@gmail.com>2017-08-08 18:56:07 -0400
committerMiciah Dashiel Butler Masters <mmasters@redhat.com>2017-08-08 18:56:07 -0400
commitfac49680cbc785478b9a33500de3c2e5a31cd85a (patch)
treeacf21f210bae989594bfad6cd5f14c5668f2784e /roles/openshift_health_checker
parent566731dc4dd1aebbbf0244dc8a31eefb8cd42de5 (diff)
downloadopenshift-fac49680cbc785478b9a33500de3c2e5a31cd85a.tar.gz
openshift-fac49680cbc785478b9a33500de3c2e5a31cd85a.tar.bz2
openshift-fac49680cbc785478b9a33500de3c2e5a31cd85a.tar.xz
openshift-fac49680cbc785478b9a33500de3c2e5a31cd85a.zip
openshift_checks: ignore hidden files in checks dir
load_checks: Ignore hidden files when scanning the directory for checks.
Diffstat (limited to 'roles/openshift_health_checker')
-rw-r--r--roles/openshift_health_checker/openshift_checks/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/__init__.py b/roles/openshift_health_checker/openshift_checks/__init__.py
index f26008c9f..29faa9c5b 100644
--- a/roles/openshift_health_checker/openshift_checks/__init__.py
+++ b/roles/openshift_health_checker/openshift_checks/__init__.py
@@ -173,7 +173,7 @@ def load_checks(path=None, subpkg=""):
modules = modules + load_checks(os.path.join(path, name), subpkg + "." + name)
continue
- if name.endswith(".py") and name not in LOADER_EXCLUDES:
+ if name.endswith(".py") and not name.startswith(".") and name not in LOADER_EXCLUDES:
modules.append(import_module(__package__ + subpkg + "." + name[:-3]))
return modules