def generate_machine_list(self):
    machine_list = []
    machines = self.virtualbox.machines
    machine_names = [machine.name for machine in machines]
    machine_states = [machine.state for machine in machines]
    machine_operating_systems = [machine.os_type_id for machine in machines]
    for machine_index in range(len(machines)):
        machine_list.append({})
        (os_version, architecture) = self.generate_os_and_architecture(machine_operating_systems[(- 1)])
        machine_list[(- 1)]['name'] = machine_names[(- 1)]
        machine_list[(- 1)]['architecture'] = architecture
        machine_list[(- 1)]['state'] = str(machine_states[(- 1)])
        for os in self.assets['operating systems']:
            if (os_version in self.assets['operating systems'][os]['versions']):
                machine_list[(- 1)]['os'] = os
                machine_list[(- 1)]['os version'] = os_version
    return machine_list
def generate_machine_list(self):
    machine_list = []
    machines = self.virtualbox.machines
    machine_names = [machine.name for machine in machines]
    machine_states = [machine.state for machine in machines]
    machine_operating_systems = [machine.os_type_id for machine in machines]
    for machine_index in range(len(machines)):
        machine_list.append({})
        (os_version, architecture) = self.generate_os_and_architecture(machine_operating_systems[(- 1)])
        machine_list[(- 1)]['name'] = machine_names[(- 1)]
        machine_list[(- 1)]['architecture'] = architecture
        machine_list[(- 1)]['state'] = str(machine_states[(- 1)])
        for os in self.assets['operating systems']:
            if (os_version in self.assets['operating systems'][os]['versions']):
                machine_list[(- 1)]['os'] = os
                machine_list[(- 1)]['os version'] = os_version
    return machine_list