buildextend-openstack: Assuage flake8
Notably, there were a bunch of imports we didn't need anymore.
#!/usr/bin/python3 -u
# An operation that mutates a build by generating an OpenStack image.
-import os,sys,json,yaml,shutil,argparse,subprocess,re,collections
-import tempfile,hashlib,gzip
+import os
+import sys
+import json
+import yaml
+import shutil
+import argparse
sys.path.insert(0, '/usr/lib/coreos-assembler')
from cmdlib import run_verbose, write_json, sha256sum_file
@@ -30,6 +34,7 @@ if os.path.isdir(tmpdir):
shutil.rmtree(tmpdir)
os.mkdir(tmpdir)
+
def generate_openstack():
buildmeta_images = buildmeta['images']
img_qemu = os.path.join(builddir, buildmeta_images['qemu']['path'])
@@ -45,5 +50,6 @@ def generate_openstack():
write_json(buildmeta_path, buildmeta)
print(f"Updated: {buildmeta_path}")
+
# Do it!
generate_openstack()
