Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
d1fedd8b
Commit
d1fedd8b
authored
Oct 26, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate Slave Instances too.
parent
9be54334
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
...bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
+1
-1
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/ERP5Site_initiateMigrateRootSoftwareReleaseUrl.xml
...grader/ERP5Site_initiateMigrateRootSoftwareReleaseUrl.xml
+1
-1
master/bt5/vifib_upgrader/bt/revision
master/bt5/vifib_upgrader/bt/revision
+1
-1
No files found.
master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
View file @
d1fedd8b
...
@@ -287,7 +287,7 @@ def Computer_updateLocalRoles(self):
...
@@ -287,7 +287,7 @@ def Computer_updateLocalRoles(self):
def
Instance_migrateRootSoftwareReleaseUrl
(
self
):
def
Instance_migrateRootSoftwareReleaseUrl
(
self
):
@
WorkflowMethod
.
disable
@
WorkflowMethod
.
disable
def
real
(
self
):
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
())
raise
TypeError
(
'%s type is not supported'
%
self
.
getPortalType
())
if
'root_software_release_url'
in
self
.
__dict__
:
if
'root_software_release_url'
in
self
.
__dict__
:
self
.
url_string
=
self
.
root_software_release_url
self
.
url_string
=
self
.
root_software_release_url
...
...
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/ERP5Site_initiateMigrateRootSoftwareReleaseUrl.xml
View file @
d1fedd8b
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
context.getPortalObject().portal_catalog.searchAndActivate(\n
<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
method_id=\'Instance_migrateRootSoftwareReleaseUrl\',\n
activate_kw={\'tag\': \'Instance_migrateRootSoftwareReleaseUrl\'}\n
activate_kw={\'tag\': \'Instance_migrateRootSoftwareReleaseUrl\'}\n
)\n
)\n
...
...
master/bt5/vifib_upgrader/bt/revision
View file @
d1fedd8b
156
157
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment