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


        return xoApi.call('vm.set', data).then -> id
      .then (id) ->
        # 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
        existingDisks
      }

      # TODO:
