summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2017-01-11 16:20:10 -0500
committerScott Moser <smoser@brickies.net>2017-01-11 16:20:10 -0500
commite55ff8f8ea9abeb7c406b2eec3e91aad8fee6f64 (patch)
treed586b9d136b9597e3e80ed71f0d73c2ab785139f
parenta1b185d0cce5064e9b36b4db7b55564e2ab1d7a8 (diff)
downloadvyos-cloud-init-e55ff8f8ea9abeb7c406b2eec3e91aad8fee6f64.tar.gz
vyos-cloud-init-e55ff8f8ea9abeb7c406b2eec3e91aad8fee6f64.zip
validate-yaml: use python rather than explicitly python3
The change here is to use '/usr/bin/env python' in validate-yaml.py as all other tools/*.py do. Additionally, change the Makefile to invoke validate-yaml.py with the python that it has selected for other things (PYVER).
-rw-r--r--Makefile2
-rwxr-xr-xtools/validate-yaml.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5d35dcc0..ed631cf7 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@ clean: clean_pyc
rm -rf /var/log/cloud-init.log /var/lib/cloud/
yaml:
- @$(CWD)/tools/validate-yaml.py $(YAML_FILES)
+ @$(PYVER) $(CWD)/tools/validate-yaml.py $(YAML_FILES)
rpm:
./packages/brpm --distro $(distro)
diff --git a/tools/validate-yaml.py b/tools/validate-yaml.py
index d8bbcfcb..a57ea847 100755
--- a/tools/validate-yaml.py
+++ b/tools/validate-yaml.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python
"""Try to read a YAML file and report any errors.
"""