netbox-client-ruby
netbox-client-ruby copied to clipboard
Fix: ipam interface should check on virtualmachine nil state
Class IpAddress has a function called 'interface' returning a Virtualization or DCIM interface based on the existance of the 'virtual_machine' property. But in case of a DCIM interface this property exists as well, only set to nil. So this nil check has to be added to return the right interface.