Added compatibility of docker-socket-proxy example in docker-compose to bypass docker access problems and add ACLs

This commit is contained in:
frikky
2022-03-11 13:27:39 +01:00
parent 391a8ad448
commit 345429f89a
4 changed files with 48 additions and 10 deletions
+2 -2
View File
@@ -1909,10 +1909,10 @@ class AppBase:
basejson = json.loads(baseresult)
except json.decoder.JSONDecodeError as e:
try:
#baseresult = baseresult.replace("\'", "\"")
baseresult = baseresult.replace("\'", "\"")
basejson = json.loads(baseresult)
except json.decoder.JSONDecodeError as e:
print("Parser issue with JSON: %s" % e)
print(f"[ERROR] Parser issue with JSON for {baseresult}: {e}")
return str(baseresult)+str(appendresult), False
print("[INFO] After fourth parser return as JSON")