Commit 02d954b4 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Titouan Soulard

slapos_cloud: make a version of _getSoftwareInstallationFromUrl public that doesn't raise NOTFound

parent 4f3fc425
......@@ -312,6 +312,12 @@ class SlapOSComputeNodeMixin(object):
return partition_dict
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(
portal_type='Software Installation',
......
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