From f66ad8bf6b25a9af9a5f471a7595fbf686ba84f2 Mon Sep 17 00:00:00 2001 From: Melody-Ann-Seda-Marotte Date: Fri, 6 May 2022 14:16:43 -0400 Subject: [PATCH] adding custom schema fields --- .../amazon/storage_manager/ebs/cloud_volume.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/models/manageiq/providers/amazon/storage_manager/ebs/cloud_volume.rb b/app/models/manageiq/providers/amazon/storage_manager/ebs/cloud_volume.rb index 483ef52d..35f2a8ca 100644 --- a/app/models/manageiq/providers/amazon/storage_manager/ebs/cloud_volume.rb +++ b/app/models/manageiq/providers/amazon/storage_manager/ebs/cloud_volume.rb @@ -290,6 +290,21 @@ def params_for_update } end + def params_for_attach + { + :fields => [ + { + :component => 'text-field', + :name => 'device_mountpoint', + :id => 'device_mountpoint', + :label => _('Device Mountpoint'), + :isRequired => true, + :validate => [{:type => 'required'}], + }, + ] + } + end + private def modify_volume_options(options = {})