           mode: if readonly then 'RO' else 'RW'
           position: String(position)
           vdi: diskUuid
-          vm: $scope.VM.UUID
+          vm: $scope.VM.id
         }
 
         # console.log(params)

          message: err
        }

    $scope.deleteDisk = (UUID) ->
      modal.confirm({
        title: 'Disk deletion'
        message: 'Are you sure you want to delete this disk? This operation is irreversible'
      }).then ->
        xoApi.call 'vdi.delete', {id: UUID}
        return
      return


            () => this.stop(),
            this.baseTimeOut
          )
          return $scope.refreshStats($scope.VM.id)
          .then () => this._reset()
          .catch (err) =>
            if !this.running || this.attempt >= 2 || $scope.VM.power_state isnt 'Running' || $scope.isVMWorking($scope.VM)
