Skip to content

Commit

Permalink
fix: Only remove network interface section if compute resource is pro…
Browse files Browse the repository at this point in the history
…xmox (#371)

(cherry picked from commit 04082e4)
  • Loading branch information
nadjaheitmann authored and Manisha15 committed Nov 7, 2024
1 parent 00db43f commit fc4e769
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fc4e769

Please sign in to comment.