-def write_version_map(options):
- """
- In order to work around
- https://bugs.launchpad.net/juju/+bug/1682925, we build a map of
- the facades that each version supports, and write it to disk here.
-
- """
- with open("{}/version_map.py".format(options.output_dir), "w") as f:
- f.write(HEADER)
- f.write("VERSION_MAP = {\n")
- for juju_version in sorted(VERSION_MAP.keys()):
- f.write(' "{}": {{\n'.format(juju_version))
- for key in VERSION_MAP[juju_version]:
- f.write(' "{}": {},\n'.format(
- key, VERSION_MAP[juju_version][key]))
- f.write(' },\n')
- f.write("}\n")
-
-