mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Add endpoint to stack removal related logs
This commit is contained in:
parent
ab7bc222aa
commit
2dc134e45d
@ -65,6 +65,7 @@ var stackRemoveCmd = &cobra.Command{
|
|||||||
|
|
||||||
logrus.WithFields(logrus.Fields{
|
logrus.WithFields(logrus.Fields{
|
||||||
"stack": stackName,
|
"stack": stackName,
|
||||||
|
"endpoint": endpointId,
|
||||||
}).Info("Removing stack")
|
}).Info("Removing stack")
|
||||||
err := portainerClient.DeleteStack(stackId)
|
err := portainerClient.DeleteStack(stackId)
|
||||||
common.CheckError(err)
|
common.CheckError(err)
|
||||||
@ -76,10 +77,12 @@ var stackRemoveCmd = &cobra.Command{
|
|||||||
// The stack does not exist
|
// The stack does not exist
|
||||||
logrus.WithFields(logrus.Fields{
|
logrus.WithFields(logrus.Fields{
|
||||||
"stack": stackName,
|
"stack": stackName,
|
||||||
|
"endpoint": endpointId,
|
||||||
}).Debug("Stack not found")
|
}).Debug("Stack not found")
|
||||||
if viper.GetBool("stack.remove.strict") {
|
if viper.GetBool("stack.remove.strict") {
|
||||||
logrus.WithFields(logrus.Fields{
|
logrus.WithFields(logrus.Fields{
|
||||||
"stack": stackName,
|
"stack": stackName,
|
||||||
|
"endpoint": endpointId,
|
||||||
}).Fatal("Stack does not exist")
|
}).Fatal("Stack does not exist")
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user