Method: Inspec::Resources::AzureVirtualMachine#connected_nics
- Defined in:
- lib/resources/azure/azure_virtual_machine.rb
#connected_nics ⇒ Object
Return an array of the connected NICs so that it can be tested to ensure the machine is connected properly
99 100 101 102 103 104 105 |
# File 'lib/resources/azure/azure_virtual_machine.rb', line 99 def connected_nics nic_names = [] properties.networkProfile.networkInterfaces.each do |nic| nic_names << nic.id.split(%r{/}).last end nic_names end |