mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Rename client to portainerClient in stack remove command to avoid collision with package name
This commit is contained in:
parent
2b2327939a
commit
e7a48ccc3e
@ -60,13 +60,13 @@ var stackRemoveCmd = &cobra.Command{
|
||||
// The stack exists
|
||||
stackId := stack.Id
|
||||
|
||||
client, err := common.GetClient()
|
||||
portainerClient, err := common.GetClient()
|
||||
common.CheckError(err)
|
||||
|
||||
logrus.WithFields(logrus.Fields{
|
||||
"stack": stackName,
|
||||
}).Info("Removing stack")
|
||||
err = client.DeleteStack(stackId)
|
||||
err = portainerClient.DeleteStack(stackId)
|
||||
common.CheckError(err)
|
||||
case *common.StackNotFoundError:
|
||||
// The stack does not exist
|
||||
|
Loading…
Reference in New Issue
Block a user