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
f5ef50e8
Commit
f5ef50e8
authored
Dec 01, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_upgrader: instances do not always have a predecessor
parent
74bc8891
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/Instance_activateMigrationToRemoteProject.py
...pos_upgrader/Instance_activateMigrationToRemoteProject.py
+7
-6
No files found.
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/Instance_activateMigrationToRemoteProject.py
View file @
f5ef50e8
...
@@ -60,9 +60,9 @@ else:
...
@@ -60,9 +60,9 @@ else:
# invert the instance references, to ensure cdn keep the same domain name
# invert the instance references, to ensure cdn keep the same domain name
# as we also want to keep subobject (login), change the instance from one tree into another
# as we also want to keep subobject (login), change the instance from one tree into another
original_predecessor
=
instance
.
getSuccessorRelatedValue
()
original_predecessor
=
instance
.
getSuccessorRelatedValue
()
assert
original_predecessor
is
not
None
if
original_predecessor
is
not
None
:
successor_list
=
original_predecessor
.
getSuccessorList
()
successor_list
=
original_predecessor
.
getSuccessorList
()
successor_list
=
[
x
.
replace
(
instance
.
getRelativeUrl
(),
requested_software_instance
.
getRelativeUrl
())
for
x
in
successor_list
]
successor_list
=
[
x
.
replace
(
instance
.
getRelativeUrl
(),
requested_software_instance
.
getRelativeUrl
())
for
x
in
successor_list
]
instance_title
=
instance
.
getTitle
()
instance_title
=
instance
.
getTitle
()
instance_tree
=
instance
.
getSpecialiseValue
()
instance_tree
=
instance
.
getSpecialiseValue
()
...
@@ -79,9 +79,10 @@ else:
...
@@ -79,9 +79,10 @@ else:
aggregate_value
=
remote_partition
,
aggregate_value
=
remote_partition
,
follow_up_value
=
remote_instance_tree
.
getFollowUpValue
()
follow_up_value
=
remote_instance_tree
.
getFollowUpValue
()
)
)
original_predecessor
.
edit
(
if
original_predecessor
is
not
None
:
successor_list
=
successor_list
original_predecessor
.
edit
(
)
successor_list
=
successor_list
)
requested_software_instance
.
edit
(
requested_software_instance
.
edit
(
title
=
instance_title
,
title
=
instance_title
,
specialise_value
=
instance_tree
,
specialise_value
=
instance_tree
,
...
...
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