Method: Inspec::Resources::AzureVirtualMachineDataDisk#datadisk_details

Defined in:
lib/resources/azure/azure_virtual_machine_data_disk.rb

#datadisk_detailsObject

Return information about the disks and add to the filter table so that assertions can be performed

Author:

  • Russell Seymour



54
55
56
57
58
59
60
61
# File 'lib/resources/azure/azure_virtual_machine_data_disk.rb', line 54

def datadisk_details
  return if failed_resource?
  # Iterate around the data disks on the machine
  properties.storageProfile.dataDisks.each_with_index.map do |datadisk, index|
    # Call function to parse the data disks and return an object based on the parameters
    parse_datadisk(datadisk, index)
  end
end