diff options
author | Miciah Masters <miciah.masters@gmail.com> | 2017-08-08 18:56:07 -0400 |
---|---|---|
committer | Miciah Dashiel Butler Masters <mmasters@redhat.com> | 2017-08-08 18:56:07 -0400 |
commit | fac49680cbc785478b9a33500de3c2e5a31cd85a (patch) | |
tree | acf21f210bae989594bfad6cd5f14c5668f2784e /roles/openshift_health_checker | |
parent | 566731dc4dd1aebbbf0244dc8a31eefb8cd42de5 (diff) | |
download | openshift-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__.py | 2 |
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 |