Fixed syntax problem with the convert
| | |
| | | #!/usr/local/bin/python -u |
| | | #!/usr/bin/env -S python -u |
| | | import argparse |
| | | import os |
| | | import glob |
| | |
| | | # break |
| | | # if output: |
| | | # print(output.strip()) |
| | | rc = process.poll() |
| | | rc = process.stdout |
| | | return rc |
| | | else: |
| | | process = subprocess.run(command, shell=True) |
| | |
| | | #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 |