diff --git a/app/overrides/compute_resources_vms/form/add_from_profile_to_compute_attributes_form.rb b/app/overrides/compute_resources_vms/form/add_from_profile_to_compute_attributes_form.rb index 7fe5cf557..3d6c502df 100644 --- a/app/overrides/compute_resources_vms/form/add_from_profile_to_compute_attributes_form.rb +++ b/app/overrides/compute_resources_vms/form/add_from_profile_to_compute_attributes_form.rb @@ -20,7 +20,8 @@ Deface::Override.new( virtual_path: 'compute_attributes/_compute_form', name: 'remove_networks_and_volumes_partial', - remove: "erb[loud]:contains('compute_resources_vms/form/networks'), erb[loud]:contains('compute_resources_vms/form/volumes')" + surround: "erb[loud]:contains('compute_resources_vms/form/networks'), erb[loud]:contains('compute_resources_vms/form/volumes')", + text: "<% unless compute_resource.class == ForemanFogProxmox::Proxmox %><%= render_original %><% end %>" ) Deface::Override.new(