fixup! slapos.slap: fix __getattr__ of product collection.

parent 10e1d89c
......@@ -117,7 +117,7 @@ def _getSoftwareReleaseFromSoftwareString(logger, software_string, product):
return software_string
try:
return product.get(software_string[len(SOFTWARE_PRODUCT_NAMESPACE):])
return product.__getattr__(software_string[len(SOFTWARE_PRODUCT_NAMESPACE):])
except AttributeError as e:
logger.error('Error: %s Exiting now.' % e.message)
sys.exit(1)
......
......@@ -174,11 +174,6 @@ class ISoftwareProductCollection(Interface):
Example: product.kvm will have the value of the latest Software
Release URL of KVM.
"""
def get(software_product):
"""
Return the best Software Release URL of the Software Product
software_product, by querying SlapOS Master.
"""
class ISoftwareInstance(Interface):
"""
......
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