Skip to content

Commit

Permalink
Merge pull request open-power#863 from PraveenPenguin/fix_token
Browse files Browse the repository at this point in the history
Patch fixes issue when login in BMC/eBMC is successful but response bo…
  • Loading branch information
abdhaleegit authored Sep 3, 2024
2 parents 2b4912f + a832140 commit b71ad3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/OpTestUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -2574,6 +2574,12 @@ def login(self, username=None, password=None):
self.xAuthHeader['X-Auth-Token'] = match.group(1)
self.jsonHeader.update(self.xAuthHeader)
json_data = json.loads(r.text)
if json_data.get('token'):
json_data={
"data": "User '%s' logged in" %username,
"message": "200 OK",
"status": "ok"
}
log.debug("r.status_code={} json_data['status']={}"
" r.text={} r.headers={} r.request.headers={}"
.format(r.status_code, json_data['status'],
Expand Down

0 comments on commit b71ad3c

Please sign in to comment.