Commit 5a0ae73e authored by Rafael Monnerat's avatar Rafael Monnerat

slap/hateoas: Always return a string when verify news message

parent 5f018c00
...@@ -467,6 +467,7 @@ class SlapHateoasNavigator(HateoasNavigator): ...@@ -467,6 +467,7 @@ class SlapHateoasNavigator(HateoasNavigator):
for si in self.getSoftwareInstallationList(computer_guid): for si in self.getSoftwareInstallationList(computer_guid):
if si["url_string"] == url: if si["url_string"] == url:
return si['SoftwareInstallation_getNewsDict']['text'] return si['SoftwareInstallation_getNewsDict']['text']
return "#error no data found"
def getComputerNews(self, computer_guid): def getComputerNews(self, computer_guid):
return self._getComputer(reference=computer_guid)['data']['news']['computer']['text'] return self._getComputer(reference=computer_guid)['data']['news']['computer']['text']
......
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