Revert "Add the upload-only option to the Horizon upgrade orchestration UI"

This reverts commit b7955a50dc.

Reason for revert: this change no longer will be necessary

Change-Id: Ia3dc73452be1f429b1a50f2f969ea80cea16adb7
This commit is contained in:
Christopher de Oliveira Souza 2024-02-06 17:05:01 +00:00 committed by Gerrit Code Review
parent b7955a50dc
commit 3dc04f2f69
2 changed files with 4 additions and 6 deletions

View File

@ -204,13 +204,12 @@ class CreateCloudStrategyForm(forms.SelfHandlingForm):
label=_("Upload Only"),
initial=False,
required=False,
help_text=_('Stops strategy after uploading releases to subclouds'),
help_text=_('Stops strategy after uploading patches to subclouds'),
widget=forms.CheckboxInput(
attrs={
'class': 'switched',
'data-switch-on': 'strategy_types',
'data-strategy_types-patch': _("Upload Only"),
'data-strategy_types-upgrade': _("Upload Only")
'data-strategy_types-patch': _("Upload Only")
}
)
)
@ -320,7 +319,7 @@ class CreateCloudStrategyForm(forms.SelfHandlingForm):
del data['to-version']
del data['force-kubernetes']
if data['type'] == 'patch' or data['type'] == 'upgrade':
if data['type'] == 'patch':
data['upload-only'] = str(data['upload-only']).lower()
else:
del data['upload-only']

View File

@ -18,8 +18,7 @@
<dt>{% trans "Stop On Failure" %}</dt>
<dd>{{ strategy.stop_on_failure }}</dd>
{% if strategy.extra_args %}
<!--TODO(cdeolive): remove patch strategy when usm is fully integrated.-->
{% if strategy.strategy_type == 'patch' or strategy.strategy_type == 'upgrade' %}
{% if strategy.strategy_type == 'patch' %}
<dt>{% trans "Upload Only" %}</dt>
<dd>{{ strategy.extra_args|get_value:"upload-only" }}</dd>
{% elif strategy.strategy_type == 'prestage' %}