Replace "cluster" with "swarm" in log messages

This commit is contained in:
Juan Carlos Mejías Rodríguez 2019-08-09 11:48:41 -04:00
parent 2dc134e45d
commit cf9ecabc7a

View File

@ -127,14 +127,14 @@ var stackDeployCmd = &cobra.Command{
logrus.WithFields(logrus.Fields{ logrus.WithFields(logrus.Fields{
"stack": stackName, "stack": stackName,
"endpoint": endpointId, "endpoint": endpointId,
"cluster": endpointSwarmClusterId, "swarm": endpointSwarmClusterId,
}).Info("Creating stack") }).Info("Creating stack")
stack, deploymentErr := portainerClient.CreateSwarmStack(stackName, loadedEnvironmentVariables, stackFileContent, endpointSwarmClusterId, uint32(endpointId)) stack, deploymentErr := portainerClient.CreateSwarmStack(stackName, loadedEnvironmentVariables, stackFileContent, endpointSwarmClusterId, uint32(endpointId))
common.CheckError(deploymentErr) common.CheckError(deploymentErr)
logrus.WithFields(logrus.Fields{ logrus.WithFields(logrus.Fields{
"stack": stack.Name, "stack": stack.Name,
"endpoint": stack.EndpointID, "endpoint": stack.EndpointID,
"cluster": stack.SwarmID, "swarm": stack.SwarmID,
"id": stack.Id, "id": stack.Id,
}).Info("Stack created") }).Info("Stack created")
} else { } else {