 
         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

        template: template.id
        VDIs
        VIFs
      }

      # TODO:

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

    {get} = xoApi
    removeItems = do ->
