From 9b028aaa9c24b55786360a97cf28b2e4ca97fa53 Mon Sep 17 00:00:00 2001 From: Bin Qian Date: Wed, 30 Oct 2019 10:14:12 -0400 Subject: [PATCH] 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 --- .../dashboards/admin/software_management/forms.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/software_management/forms.py b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/software_management/forms.py index e28bff26..7639b58f 100644 --- a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/software_management/forms.py +++ b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/software_management/forms.py @@ -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 = \