netbox-client-ruby icon indicating copy to clipboard operation
netbox-client-ruby copied to clipboard

Fix: ipam interface should check on virtualmachine nil state

Open PeterO2 opened this issue 5 years ago • 0 comments

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.

PeterO2 avatar Feb 13 '20 15:02 PeterO2