summaryrefslogtreecommitdiffstats
path: root/git
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2016-01-28 14:35:35 -0500
committerKenny Woodson <kwoodson@redhat.com>2016-01-28 14:35:35 -0500
commitb42664e6f0bf137a10123a8d99567700440c8c5d (patch)
tree496ee0fbac9d942a7a7d913383acc7d246b6ff42 /git
parent8728336e8897d0cbeef845c1b4fb01208978bb81 (diff)
parent0e4a65a7c59bf887e8b7c7b0cdc8cfe1995fbdcb (diff)
downloadopenshift-b42664e6f0bf137a10123a8d99567700440c8c5d.tar.gz
openshift-b42664e6f0bf137a10123a8d99567700440c8c5d.tar.bz2
openshift-b42664e6f0bf137a10123a8d99567700440c8c5d.tar.xz
openshift-b42664e6f0bf137a10123a8d99567700440c8c5d.zip
Merge pull request #1294 from kwoodson/yaml_fix
Fixed logic for skipping symlinks in jenkins checks.
Diffstat (limited to 'git')
-rwxr-xr-xgit/yaml_validation.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/git/yaml_validation.py b/git/yaml_validation.py
index 2b5c8ed49..69fd455a5 100755
--- a/git/yaml_validation.py
+++ b/git/yaml_validation.py
@@ -47,7 +47,12 @@ def main():
print "+++++++ Received: %s" % file_mod
- if not file_mod.endswith('.yml') and not file_mod.endswith('.yaml') and not os.path.islink(file_mod):
+ # if the file extensions is not yml or yaml, move along.
+ if not file_mod.endswith('.yml') and not file_mod.endswith('.yaml'):
+ continue
+
+ # We use symlinks in our repositories, ignore them.
+ if os.path.islink(file_mod):
continue
try: