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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
387e49e2
Commit
387e49e2
authored
Nov 22, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_upgrader: trigger instance tree migration
parent
bd7e8725
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_checkSiteMigrationToVirtualMaster.py
...pgrader/InstanceTree_checkSiteMigrationToVirtualMaster.py
+4
-2
No files found.
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/InstanceTree_checkSiteMigrationToVirtualMaster.py
View file @
387e49e2
...
@@ -18,7 +18,7 @@ if last_affectation_list and last_affectation_list[0].project_uid:
...
@@ -18,7 +18,7 @@ if last_affectation_list and last_affectation_list[0].project_uid:
not_migrated_instance_tree_dict
[
instance_tree_relative_url
]
=
{
not_migrated_instance_tree_dict
[
instance_tree_relative_url
]
=
{
'title'
:
instance_tree
.
getTitle
(),
'title'
:
instance_tree
.
getTitle
(),
'slap_state'
:
instance_tree
.
getSlapState
(),
'slap_state'
:
instance_tree
.
getSlapState
(),
'destination_section'
:
instance_tree
.
getDestinationSection
(),
'destination_section'
:
instance_tree
.
getDestinationSection
(
None
),
'project_relative_url'
:
project_relative_url
,
'project_relative_url'
:
project_relative_url
,
'alive_instance_list'
:
[]
'alive_instance_list'
:
[]
}
}
...
@@ -30,6 +30,8 @@ for sql_instance in portal.portal_catalog(specialise__uid=instance_tree.getUid()
...
@@ -30,6 +30,8 @@ for sql_instance in portal.portal_catalog(specialise__uid=instance_tree.getUid()
# as, there is no way to know where it has been allocated previously
# as, there is no way to know where it has been allocated previously
if
(
not_migrated_instance_tree_dict
[
instance_tree_relative_url
][
'slap_state'
]
==
'destroy_requested'
)
and
\
if
(
not_migrated_instance_tree_dict
[
instance_tree_relative_url
][
'slap_state'
]
==
'destroy_requested'
)
and
\
(
len
(
not_migrated_instance_tree_dict
[
instance_tree_relative_url
][
'alive_instance_list'
])
==
0
)
and
\
(
len
(
not_migrated_instance_tree_dict
[
instance_tree_relative_url
][
'alive_instance_list'
])
==
0
)
and
\
(
not_migrated_instance_tree_dict
[
instance_tree_relative_url
][
'project_relative_url'
]
is
None
):
(
not_migrated_instance_tree_dict
[
instance_tree_relative_url
][
'project_relative_url'
]
is
None
)
and
\
(
not_migrated_instance_tree_dict
[
instance_tree_relative_url
][
'destination_section'
]
is
not
None
):
instance_tree
.
getDestinationSectionValue
().
Person_checkSiteMigrationCreatePersonalVirtualMaster
([
instance_tree_relative_url
])
not_migrated_instance_tree_dict
.
pop
(
instance_tree_relative_url
)
not_migrated_instance_tree_dict
.
pop
(
instance_tree_relative_url
)
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