From 53411db5dc2cff2131b906074a068e7c9e7f62ea Mon Sep 17 00:00:00 2001
From: Chris Pomeroy <chris.pomeroy@hotmail.com>
Date: Sat, 01 May 2021 03:51:36 +0000
Subject: [PATCH] Fixed syntax problem with the convert

---
 aaxConvert.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/aaxConvert.py b/aaxConvert.py
index 21164ca..d6045f0 100755
--- a/aaxConvert.py
+++ b/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

--
Gitblit v1.10.0