diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-08-10 09:06:15 -0600 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-08-10 09:06:15 -0600 |
commit | c3c3dc693c14175e110b5fe125d4d5f98ace9700 (patch) | |
tree | 8858702c2c8a6ad4bf1bb861a4565e0a9c28e588 /tools/validate-yaml.py | |
parent | 5bd3493d732e5b1902872958e8681f17cbc81ce5 (diff) | |
download | cloud-init-trunk.tar.gz |
cloud-init development has moved its revision control to git.
It is available at
https://code.launchpad.net/cloud-init
Clone with
git clone https://git.launchpad.net/cloud-init
or
git clone git+ssh://git.launchpad.net/cloud-init
For more information see
https://git.launchpad.net/cloud-init/tree/HACKING.rst
Diffstat (limited to 'tools/validate-yaml.py')
-rwxr-xr-x | tools/validate-yaml.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tools/validate-yaml.py b/tools/validate-yaml.py deleted file mode 100755 index ed9037d9..00000000 --- a/tools/validate-yaml.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env python3 - -"""Try to read a YAML file and report any errors. -""" - -import sys -import yaml - - -if __name__ == "__main__": - bads = 0 - for fn in sys.argv[1:]: - sys.stdout.write("%s" % (fn)) - try: - fh = open(fn, 'r') - yaml.safe_load(fh.read()) - fh.close() - sys.stdout.write(" - ok\n") - except Exception as e: - sys.stdout.write(" - bad (%s)\n" % (e)) - bads += 1 - if bads > 0: - sys.exit(1) - else: - sys.exit(0) |