function checkVm(vm) {
      return vm instanceof CloudProjectComputeInfraVrackVmFactory
        ? vm
        : new CloudProjectComputeInfraVrackVmFactory(vm);
    }
/**
     *  Check if vm is already an instance or an options object
     */
Check if vm is already an instance or an options object
Check if vm is already an instance or an options object
function checkVm(vm) {
      return vm instanceof CloudProjectComputeInfraVrackVmFactory
        ? vm
        : new CloudProjectComputeInfraVrackVmFactory(vm);
    }
function checkVm ( vm ) { return vm instanceof CloudProjectComputeInfraVrackVmFactory ? vm : new CloudProjectComputeInfraVrackVmFactory ( vm ) ; }
Check if vm is already an instance or an options object
Check if vm is already an instance or an options object