Revision 0bdbdfbc src/cli/one_helper/onevm_helper.rb

View differences:

src/cli/one_helper/onevm_helper.rb
578 578
            vm_disks = [vm_hash['VM']['TEMPLATE']['DISK']].flatten
579 579
        end
580 580

  
581
        if vm.has_elements?("/VM/TEMPLATE/CONTEXT")
581
        if vm.has_elements?("/VM/TEMPLATE/CONTEXT") && vm["/VM/HISTORY_RECORDS/HISTORY[1]/VM_MAD"] != 'vcenter'
582 582
            context_disk = vm_hash['VM']['TEMPLATE']['CONTEXT']
583 583

  
584 584
            context_disk["IMAGE"]     = "CONTEXT"

Also available in: Unified diff