Revision 50ab7527 src/tm_mad/vcenter/mvds

View differences:

src/tm_mad/vcenter/mvds
65 65

  
66 66
    vm.one_item = one_vm
67 67

  
68
    vm.detach_disk(disk)
68
    vm.detach_disk(disk) if !vm.has_snapshots?
69 69
rescue Exception => e
70 70
    STDERR.puts "Error detaching virtual disk #{img_path} from vm #{vmid}."\
71 71
                " Reason: #{e.message}\n#{e.backtrace}"

Also available in: Unified diff