Skip to content

Commit

Permalink
Fixes #35248 - Show mac address in VmWare info
Browse files Browse the repository at this point in the history
  • Loading branch information
girijaasoni authored and ares committed Dec 18, 2023
1 parent a3dce62 commit ac9fff0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/api/v2/compute_resources_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ def show_vm
end
attributes = @vm.attributes.deep_symbolize_keys
attributes[:provider] = @compute_resource.provider
if attributes[:provider] == "Vmware"
attributes[:mac_addresses] = @vm.mac_addresses
attributes[:mac] = @vm.mac
end
render :json => attributes.as_json(:except => [:label_fingerprint, :fingerprint, :parent])
end

Expand Down

0 comments on commit ac9fff0

Please sign in to comment.