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
Titouan Soulard
slapos.core
Commits
3287cfd4
Commit
3287cfd4
authored
Jun 22, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: drop comment
and fix wrong usage of Base_reindexAndSenseAlarm
parent
64d94430
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/slapos_cloud_interaction_workflow/script_Instance_triggerPropagateRemoteNodeAlarm.py
...rkflow/script_Instance_triggerPropagateRemoteNodeAlarm.py
+1
-2
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/slapos_cloud_interaction_workflow/script_SoftwareInstance_reindexComputePartition.py
...rkflow/script_SoftwareInstance_reindexComputePartition.py
+0
-1
No files found.
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/slapos_cloud_interaction_workflow/script_Instance_triggerPropagateRemoteNodeAlarm.py
View file @
3287cfd4
instance
=
state_change
[
'object'
]
instance
=
state_change
[
'object'
]
partition
=
instance
.
getAggregateValue
()
partition
=
instance
.
getAggregateValue
()
if
(
partition
is
not
None
)
and
(
partition
.
getParentValue
().
getPortalType
()
==
'Remote Node'
):
if
(
partition
is
not
None
)
and
(
partition
.
getParentValue
().
getPortalType
()
==
'Remote Node'
):
partition
.
Base_reindexAndSenseAlarm
([
'slapos_cloud_propagate_remote_node_instance'
],
extra_reindex_object_list
=
[
instance
])
partition
.
Base_reindexAndSenseAlarm
([
'slapos_cloud_propagate_remote_node_instance'
])
#instance.Base_reindexAndSenseAlarm(['slapos_cloud_propagate_remote_node_instance'])
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/slapos_cloud_interaction_workflow/script_SoftwareInstance_reindexComputePartition.py
View file @
3287cfd4
...
@@ -8,4 +8,3 @@ if partition is not None:
...
@@ -8,4 +8,3 @@ if partition is not None:
active_object
.
Base_reindexAndSenseAlarm
([
'slapos_cloud_propagate_remote_node_instance'
])
active_object
.
Base_reindexAndSenseAlarm
([
'slapos_cloud_propagate_remote_node_instance'
])
else
:
else
:
active_object
.
reindexObject
()
active_object
.
reindexObject
()
#instance.Base_reindexAndSenseAlarm(['slapos_cloud_propagate_remote_node_instance'])
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