Revision 1aaf04e4 src/vmm_mad/remotes/vcenter/snapshot_create

View differences:

src/vmm_mad/remotes/vcenter/snapshot_create
62 62
    puts vm.create_snapshot(snap_id, snap_name)
63 63

  
64 64
rescue Exception => e
65
    STDERR.puts "Snapshot of VM #{vm_ref} on vCenter cluster "\
66
                "#{vc_cluster_name} failed due to "\
67
                "\"#{e.message}\"\n#{e.backtrace}"
65
    message = "Snapshot of VM #{vm_ref} on vCenter cluster "\
66
              "#{vc_cluster_name} failed due to "\
67
              "\"#{e.message}\"\n#{e.backtrace}"
68
    STDERR.puts error_message(message)
68 69
    exit -1
69 70
ensure
70 71
    vi_client.close_connection if vi_client

Also available in: Unified diff