diff options
author | manchandavishal <manchandavishal143@gmail.com> | 2021-11-02 12:10:22 +0530 |
---|---|---|
committer | manchandavishal <manchandavishal143@gmail.com> | 2022-01-24 16:21:18 +0530 |
commit | 6ac31e0ba8df520133d20d21e35085d9b882c04e (patch) | |
tree | 4e7f04719fe9fc7070fed3df426d79db3848ef21 /openstack_dashboard/dashboards/project/instances/views.py | |
parent | 9d1bb3626bc1dbcf29a55aeb094f4350067317cd (diff) | |
download | horizon-6ac31e0ba8df520133d20d21e35085d9b882c04e.tar.gz |
Drop Django based implementation of launch instance
horizon already deprecated launch instance Django based implementation
in the wallaby cycle [1]. This patch remove code for launch instance
Django based implementation as angular based implementation is the
default one from long and all features gaps between angular and Django
implementation is closed.
It also moves SetAdvanced step code to ``resize_instance.py`` as
``workflows/create_instance.py`` file is deleted and remove server_group
option from Advanced Options of resizing instance action because
"server_group" is not required while resizing an instance as per
nova-api reference [2].
Closes-Bug: #1869222
[1] https://review.opendev.org/c/openstack/horizon/+/779125
[2] https://docs.openstack.org/api-ref/compute/?expanded=resize-server-resize-action-detail#resize-server-resize-action
Change-Id: I5e01cd81f309491f1a58ea93911030366a86e3c7
Diffstat (limited to 'openstack_dashboard/dashboards/project/instances/views.py')
-rw-r--r-- | openstack_dashboard/dashboards/project/instances/views.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/openstack_dashboard/dashboards/project/instances/views.py b/openstack_dashboard/dashboards/project/instances/views.py index f767c538f..ee8b1636c 100644 --- a/openstack_dashboard/dashboards/project/instances/views.py +++ b/openstack_dashboard/dashboards/project/instances/views.py @@ -40,7 +40,6 @@ from horizon import workflows from openstack_dashboard import api from openstack_dashboard.utils import filters -from openstack_dashboard.utils import settings as setting_utils from openstack_dashboard.dashboards.project.instances \ import console as project_console @@ -260,26 +259,6 @@ def _swap_filter(resources, search_opts, fake_field, real_field): return True -class LaunchInstanceView(workflows.WorkflowView): - workflow_class = project_workflows.LaunchInstance - - def __init__(self): - super().__init__() - LOG.warning('Django version of the launch instance form is ' - 'deprecated since Wallaby release. Switch to ' - 'the AngularJS version of the form by setting ' - 'LAUNCH_INSTANCE_NG_ENABLED to True and ' - 'LAUNCH_INSTANCE_LEGACY_ENABLED to False.') - - def get_initial(self): - initial = super().get_initial() - initial['project_id'] = self.request.user.tenant_id - initial['user_id'] = self.request.user.id - initial['config_drive'] = setting_utils.get_dict_config( - 'LAUNCH_INSTANCE_DEFAULTS', 'config_drive') - return initial - - # TODO(stephenfin): Migrate to CBV def console(request, instance_id): data = _('Unable to get log for instance "%s".') % instance_id |