Closed oyvindhagberg closed 10 months ago
There is a strange error that occurs when trying to authenticate with curl, that doesn't happen when authenticating with mreg-cli. I tracked it down to the following code: https://github.com/unioslo/mreg/blob/29005d08ebc66e4b22cac5bca8d3fc9aefe87917/mreg/log_processors.py#L42-L47
curl
mreg-cli
Apparently event_dict["content"] is sometimes a dict and sometimes a str.
event_dict["content"]
This PR does the following:
coverage: 99.162% (-0.03%) from 99.19% when pulling a7c378b34c56933886db1bf946e6be50a73dc38e on fix-curl-auth-issue-202309 into 29005d08ebc66e4b22cac5bca8d3fc9aefe87917 on master.
There is a strange error that occurs when trying to authenticate with
curl
, that doesn't happen when authenticating withmreg-cli
. I tracked it down to the following code: https://github.com/unioslo/mreg/blob/29005d08ebc66e4b22cac5bca8d3fc9aefe87917/mreg/log_processors.py#L42-L47Apparently
event_dict["content"]
is sometimes a dict and sometimes a str.This PR does the following: