Chris Pomeroy
2021-05-01 53411db5dc2cff2131b906074a068e7c9e7f62ea
aaxConvert.py
@@ -1,4 +1,4 @@
#!/usr/local/bin/python -u
#!/usr/bin/env -S python -u
import argparse
import os
import glob
@@ -86,7 +86,7 @@
        #         break
        #     if output:
        #         print(output.strip())
        rc = process.poll()
        rc = process.stdout
        return rc
    else:
        process = subprocess.run(command, shell=True)
@@ -150,7 +150,7 @@
#request the key for the checksum
    try:
        r = requests.post('http://prod-faas-gw.darkurthe.net:8080/function/checkkey', metadata['checksum'], verify=False, timeout=None)
        return r.text
        return r.text.strip()
    except requests.exceptions.HTTPError as err:
        raise error
        return None