summaryrefslogtreecommitdiff
path: root/tools/validate-yaml.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-08-10 09:06:15 -0600
committerScott Moser <smoser@ubuntu.com>2016-08-10 09:06:15 -0600
commitc3c3dc693c14175e110b5fe125d4d5f98ace9700 (patch)
tree8858702c2c8a6ad4bf1bb861a4565e0a9c28e588 /tools/validate-yaml.py
parent5bd3493d732e5b1902872958e8681f17cbc81ce5 (diff)
downloadcloud-init-trunk.tar.gz
README: Mention move of revision control to git.HEADtrunk
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-xtools/validate-yaml.py25
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)