diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-08-31 15:20:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 15:20:09 +0200 |
commit | 7faa0c4111252a2710166cdbd027575e1cf1cb8a (patch) | |
tree | 6c52ef2aef7b0e5345e255cd9f6dd5c4d3e03dcb /roles/openshift_health_checker | |
parent | 404fe1f41182c5901287123da1fd1dc356d7686f (diff) | |
parent | fac49680cbc785478b9a33500de3c2e5a31cd85a (diff) | |
download | openshift-7faa0c4111252a2710166cdbd027575e1cf1cb8a.tar.gz openshift-7faa0c4111252a2710166cdbd027575e1cf1cb8a.tar.bz2 openshift-7faa0c4111252a2710166cdbd027575e1cf1cb8a.tar.xz openshift-7faa0c4111252a2710166cdbd027575e1cf1cb8a.zip |
Merge pull request #5035 from Miciah/openshift_checks-ignore-hidden-files-in-checks-directory
openshift_checks: ignore hidden files in checks dir
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 07ec6f7ef..02ee1d0f9 100644 --- a/roles/openshift_health_checker/openshift_checks/__init__.py +++ b/roles/openshift_health_checker/openshift_checks/__init__.py @@ -242,7 +242,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 |