diff options
author | Scott Moser <smoser@brickies.net> | 2017-01-11 16:20:10 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-01-11 16:20:10 -0500 |
commit | e55ff8f8ea9abeb7c406b2eec3e91aad8fee6f64 (patch) | |
tree | d586b9d136b9597e3e80ed71f0d73c2ab785139f | |
parent | a1b185d0cce5064e9b36b4db7b55564e2ab1d7a8 (diff) | |
download | vyos-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-- | Makefile | 2 | ||||
-rwxr-xr-x | tools/validate-yaml.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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. """ |