Commit bfc53e3f authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Romain Courteaud

slapos_cloud: make getSoftwareInstallationFromUrl public and remove except NotFound

* NotFound Errors are now handled by API
parent 89165c4d
...@@ -317,12 +317,6 @@ class SlapOSComputeNodeMixin(object): ...@@ -317,12 +317,6 @@ class SlapOSComputeNodeMixin(object):
return partition_dict return partition_dict
def getSoftwareInstallationFromUrl(self, url): def getSoftwareInstallationFromUrl(self, url):
try:
return self._getSoftwareInstallationFromUrl(url)
except NotFound:
return None
def _getSoftwareInstallationFromUrl(self, url):
software_installation_list = self.getPortalObject().portal_catalog.unrestrictedSearchResults( software_installation_list = self.getPortalObject().portal_catalog.unrestrictedSearchResults(
portal_type='Software Installation', portal_type='Software Installation',
default_aggregate_uid=self.getUid(), default_aggregate_uid=self.getUid(),
......
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