try:
cacert = base64.b64decode(b64string).decode("utf-8")
- cacert = re.sub(r"\\n", r"\n", cacert,)
+ cacert = re.sub(
+ r"\\n",
+ r"\n",
+ cacert,
+ )
except binascii.Error as e:
raise N2VCInvalidCertificate(message="Invalid CA Certificate: {}".format(e))
},
}
-DB_DATA = Dict(
- {
- "api_endpoints": Dict(
- {"table": "admin", "filter": {"_id": "juju"}, "key": "api_endpoints"}
- )
- }
-)
-
def obj_to_yaml(obj: object) -> str:
"""