unioslo / mreg

GNU General Public License v3.0
7 stars 13 forks source link

Fix curl auth issue #519

Closed oyvindhagberg closed 10 months ago

oyvindhagberg commented 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

Apparently event_dict["content"] is sometimes a dict and sometimes a str.

This PR does the following:

coveralls commented 10 months ago

Coverage Status

coverage: 99.162% (-0.03%) from 99.19% when pulling a7c378b34c56933886db1bf946e6be50a73dc38e on fix-curl-auth-issue-202309 into 29005d08ebc66e4b22cac5bca8d3fc9aefe87917 on master.