Kaynağa Gözat

Merge pull request #1294 from kwoodson/yaml_fix

Fixed logic for skipping symlinks in jenkins checks.
Kenny Woodson 9 yıl önce
ebeveyn
işleme
b42664e6f0
1 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 6 1
      git/yaml_validation.py

+ 6 - 1
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: