@staticmethod
    def __add_vm_properties_to_map_from_vm_array(vm_map, vm_array):
        for vm in vm_array:
            if vm_map not in vm._GetMoId():
                vm_map[vm._GetMoId()] = {
                    "moid": vm._GetMoId(),
                    "name": vm.name,
                    "runtime.powerState": vm.runtime.powerState
                }
dataset/ETHPy150Open StackStorm/st2contrib/packs/vsphere/actions/get_vms.py/GetVMs.__add_vm_properties_to_map_from_vm_array/swapped operands of `not in`