Skip to content

Commit

Permalink
validate-yaml: use python rather than explicitly python3
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
smoser committed Jan 11, 2017
1 parent a1b185d commit e55ff8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tools/validate-yaml.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python

"""Try to read a YAML file and report any errors.
"""
Expand Down

0 comments on commit e55ff8f

Please sign in to comment.