 
   confirmVmDeletion: (vmInfo, callback = (->)) ->
     { hostnameAlias } = vmInfo
-    
+
     vmPrefix = (@parseAlias hostnameAlias)?.prefix or hostnameAlias
 
     modal = new VmDangerModalView

    JVM.removeByHostname hostnameAlias, (err)->
      return callback err  if err

      KD.getSingleton("finderController").unmountVm hostnameAlias
      KD.getSingleton("vmController").emit 'VMListChanged'
      callback null


        return new KDNotificationView
          title : err.message or "Something bad happened while creating VM"
      else
        # KD.getSingleton("finderController").mountVm vm.hostnameAlias
        vmController.emit 'VMListChanged'
        vmController.showVMDetails vm

