Revision e967e965

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb
463 463
            end
464 464

  
465 465
        rescue Exception => e
466
            error = "\n    There was an error trying to create a virtual network for network in vcenter template. Reason: #{e.message}"
466
            error = "\n    There was an error trying to create a virtual network to repesent a vCenter network for a VM or VM Template. Reason: #{e.message}"
467 467
        ensure
468 468
            unlock
469 469
            #Rollback, delete virtual networks
470
            if !error.empty?
470
            if !error.empty? && allocated_networks
471 471
                allocated_networks.each do |n|
472 472
                    n.delete
473 473
                end

Also available in: Unified diff