Make parallel option available for AIO patch strategy
This change is to replicate the behavior of CLI command in GUI to make the parallel and ignore options available in AIO load for creating patch strategy. Change-Id: I6b4dc695727a4e7bed7b599716d686b3eef837b7 Closes-Bug: 1849181 Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
parent
57d102dc77
commit
9b028aaa9c
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (c) 2016 Wind River Systems, Inc.
|
||||
# Copyright (c) 2016-2019 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
@ -74,10 +74,6 @@ class CreatePatchStrategyForm(forms.SelfHandlingForm):
|
|||
('ignore', _("Ignore")),
|
||||
)
|
||||
|
||||
AIO_APPLY_TYPES = (
|
||||
('serial', _("Serial")),
|
||||
)
|
||||
|
||||
GENERIC_APPLY_TYPES = (
|
||||
('serial', _("Serial")),
|
||||
('parallel', _("Parallel")),
|
||||
|
@ -156,7 +152,6 @@ class CreatePatchStrategyForm(forms.SelfHandlingForm):
|
|||
system_type = stx_api.sysinv.get_system_type(request)
|
||||
if system_type == stx_api.sysinv.SYSTEM_TYPE_AIO:
|
||||
del self.fields['controller_apply_type']
|
||||
self.fields['worker_apply_type'].choices = self.AIO_APPLY_TYPES
|
||||
|
||||
if stx_api.sysinv.is_system_mode_simplex(request):
|
||||
self.fields['default_instance_action'].choices = \
|
||||
|
|
Loading…
Reference in New Issue