anchor.diff:  $evm.log('info', "CreateVMWareVM: Product Details: #{product_details}")
   product_hash = JSON.parse(product_details.gsub("'", '"').gsub('=>', ':'))
   datacenter = product_hash['datacenter']
  -host = product_hash['host']
  +endpoint = $evm.root['dialog_referer']
   port = Integer(product_hash['port']) unless product_hash['port'].nil || product_hash[port] == ''
   user = product_hash['user']
   password = product_hash['password']
  
positive.code: require 'uri/http'
  require 'json'
  
  def send_order_status(host, headers, status, order_id, information, message = '')
    path = "/order_items/#{order_id}/provision_update"
    url = "http://#{host}#{path}"
    uri = URI.parse(url)
  
    information = information.merge('provision_status' => status.downcase)
    $evm.log('info', "send_order_status: Information: #{information}")
  
negative.code: 
  begin
    $evm.log('info', 'DeleteVMWareVM: Begin')
    vim = RbVmomi::VIM.connect host: URI.parse(endpoint).host, port: port, user: user, password: password, insecure: false
    dc = vim.serviceInstance.find_datacenter(datacenter)
    $evm.log('info', 'DeleteVMWareVM: Found datacenter')
    vm = dc.find_vm(instance_name)
    if vm.nil?
      send_order_status(endpoint, headers, 'CRITICAL',  info, 'Could not find VM')
      exit
    end
    $evm.log('info', 'DeleteVMWareVM: Found VM')
    vm.Destroy_Task(this: vm)
  rescue StandardError => e
    send_order_status(endpoint, headers, 'CRITICAL',  info, "Exception caught while creating VM: #{e.message}")
    $evm.log('error', "DeleteVMWareVM: Error while deleting VM: #{e.message}")
    exit
  end
  