hunk.code_window: }
   // Deploy executes the docker stack deploy command.
   func (manager *SwarmStackManager) Deploy(stack *portainer.Stack, prune bool, pullImage bool, endpoint *portainer.Endpoint) error {
   	filePaths := stackutils.GetStackFilePaths(stack, false)
   	command, args, err := manager.prepareDockerCommandAndArgs(manager.binaryPath, manager.configPath, endpoint)
   	if err != nil {
   		return err
   	}
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit: 	filePaths := stackutils.GetStackFilePaths(stack, true)
  
hunk.file_path: api/exec/swarm_stack.go
hunk.type: replace
file: angular.module('portainer.docker').controller('NodeAvailabilitySelectController', [
    function NodeAvailabilitySelectController() {
      this.onChange = onChange;
  
      function onChange() {
        this.onSave({ availability: this.availability });
      }
    },
  ]);
  