Commit e932b9bf authored by Rafael Monnerat's avatar Rafael Monnerat

slap/hateoas: Fix path for the hateaos API

  Ensure that path is correct if hateoas_url don't finish with '/'
parent 98d89154
......@@ -407,7 +407,7 @@ class SlapHateoasNavigator(HateoasNavigator):
root_document = self.getRootDocument()
hateoas_url = root_document['_links']['self']['href']
token_json = self.jio_getAttachment(
"computer_module", hateoas_url + "computer_module/Base_getComputerToken", {})
"computer_module", hateoas_url + "/computer_module/Base_getComputerToken", {})
return token_json["access_token"]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment