Commit 16ebe042 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: SlapTool don't encode SoftwareRelease()._software release anymore

Since the compatibility with PY3.
parent 06f11900
...@@ -214,11 +214,11 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin): ...@@ -214,11 +214,11 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
for software_release in slap_computer._software_release_list: for software_release in slap_computer._software_release_list:
if software_release._requested_state == 'destroyed': if software_release._requested_state == 'destroyed':
self.portal.portal_slap.destroyedSoftwareRelease( self.portal.portal_slap.destroyedSoftwareRelease(
software_release._software_release.encode("UTF-8"), software_release._software_release,
computer.getReference()) computer.getReference())
else: else:
self.portal.portal_slap.availableSoftwareRelease( self.portal.portal_slap.availableSoftwareRelease(
software_release._software_release.encode("UTF-8"), software_release._software_release,
computer.getReference()) computer.getReference())
finally: finally:
setSecurityManager(sm) setSecurityManager(sm)
......
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