Commit d1fedd8b authored by Łukasz Nowak's avatar Łukasz Nowak

Migrate Slave Instances too.

parent 9be54334
......@@ -287,7 +287,7 @@ def Computer_updateLocalRoles(self):
def Instance_migrateRootSoftwareReleaseUrl(self):
@WorkflowMethod.disable
def real(self):
if self.getPortalType() not in ('Hosting Subscription', 'Software Instance'):
if self.getPortalType() not in ('Hosting Subscription', 'Software Instance', 'Slave Instance'):
raise TypeError('%s type is not supported' % self.getPortalType())
if 'root_software_release_url' in self.__dict__:
self.url_string = self.root_software_release_url
......
......@@ -51,7 +51,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string>context.getPortalObject().portal_catalog.searchAndActivate(\n
portal_type=(\'Hosting Subscription\', \'Software Instance\'),\n
portal_type=(\'Hosting Subscription\', \'Software Instance\', \'Slave Instance\'),\n
method_id=\'Instance_migrateRootSoftwareReleaseUrl\',\n
activate_kw={\'tag\': \'Instance_migrateRootSoftwareReleaseUrl\'}\n
)\n
......
156
\ No newline at end of file
157
\ No newline at end of file
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