Revert "Merge pull request #1209 from JackDanger/jack/store-as-python"

This reverts commit 2a3fdf6b64, reversing
changes made to a06145d781.
This commit is contained in:
Jack Danger 2017-09-27 13:57:40 -07:00
commit 53d8d48e88
5 changed files with 4 additions and 2178 deletions

View file

@ -141,20 +141,10 @@ def main():
result[instance_id] = instance_data
root_dir = subprocess.check_output(['git', 'rev-parse', '--show-toplevel']).decode().strip()
dest = os.path.join(root_dir, 'moto/ec2/resources/instance_types.py')
dest = os.path.join(root_dir, 'moto/ec2/resources/instance_types.json')
print("Writing data to {0}".format(dest))
with open(dest, 'w') as open_file:
triple_quote = '\"\"\"'
open_file.write("# Imported via `scripts/get_instance_info.py`\n")
open_file.write('instance_types_data = {}\n'.format(triple_quote))
json.dump(result,
open_file,
sort_keys=True,
indent=4,
separators=(',', ': '))
open_file.write('{}\n'.format(triple_quote))
json.dump(result, open_file)
if __name__ == '__main__':
main()