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{
"stack": stackName,
"endpoint": endpointId,
"cluster": endpointSwarmClusterId,
"swarm": endpointSwarmClusterId,
}).Info("Creating stack")
stack, deploymentErr := portainerClient.CreateSwarmStack(stackName, loadedEnvironmentVariables, stackFileContent, endpointSwarmClusterId, uint32(endpointId))
common.CheckError(deploymentErr)
logrus.WithFields(logrus.Fields{
"stack": stack.Name,
"endpoint": stack.EndpointID,
"cluster": stack.SwarmID,
"swarm": stack.SwarmID,
"id": stack.Id,
}).Info("Stack created")
} else {