         template: template.id
         VDIs
         VIFs
+        existingDisks
       }
 
       # TODO:

    notify
  ) ->
    $scope.configDriveActive = false
    templateDiskChanges = {}
    $scope.saveChange = (position, propertyName, value) ->
      if not templateDiskChanges[position]?
        templateDiskChanges[position] = {}
      templateDiskChanges[position][propertyName] = value

    {get} = xoApi
    removeItems = do ->


        return xoApi.call('vm.set', data).then -> id
      .then (id) ->
        console.log data
        console.log 'Existing disks: ' + existingDisks
        # TODO
        # If we asked for bigger existing template disk(s)
        # we need to resize them after the VM is created
