Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var addCmd = &cobra.Command{
Aliases: []string{"a"},
Short: "Add a project, or add notifications and variables to projects or environments",
PersistentPreRun: func(cmd *cobra.Command, args []string) {
validateToken(lagoonCLIConfig.Current) // get a new token if the current one is invalid
validateToken(lContext.Name) // get a new token if the current one is invalid
},
}

Expand All @@ -18,7 +18,7 @@ var addNotificationCmd = &cobra.Command{
Aliases: []string{"n"},
Short: "Add notifications or add notifications to projects",
PersistentPreRun: func(cmd *cobra.Command, args []string) {
validateToken(lagoonCLIConfig.Current) // get a new token if the current one is invalid
validateToken(lContext.Name) // get a new token if the current one is invalid
},
}

Expand Down
Loading