Skip to content

Commit

Permalink
for idaholab#415, work in progress on converting devices -> vms
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Apr 25, 2024
1 parent 57c21bc commit 197c4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logstash/ruby/netbox_enrich.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ def netbox_lookup(

if _device_to_vm
# you can't "convert" a device to a VM, so we have to create a new VM then delete the old device
_vm_data = { :name => _patched_vm_data.fetch(:name, [previous_result.fetch(:name, nil)])&.flatten&.uniq.first,
_vm_data = { :name => _patched_device_data.fetch(:name, [previous_result.fetch(:name, nil)])&.flatten&.uniq.first,
:site => _previous_device_site,
:tags => _tags,
:status => @default_status }
Expand Down

0 comments on commit 197c4a1

Please sign in to comment.