Skip to content

Commit 3319a45

Browse files
committed
fix(server): adapted warning after jf to indicate deprecation
1 parent 2263784 commit 3319a45

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/cmd/server/service-account/attach/attach.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func parseInput(p *print.Printer, cmd *cobra.Command, inputArgs []string) (*inpu
106106
serviceAccMail = inputArgs[0]
107107
p.Warn("using a positional argument for the service account email is deprecated and will be removed in 2027-01. Please use '--%s' instead.\n", serviceAccFlag)
108108
} else {
109-
return nil, fmt.Errorf(`service account must be specified by using either the --%s flag or as a positional argument`, serviceAccFlag)
109+
return nil, fmt.Errorf(`service account must be specified by using either the --%s flag or (deprecated) as a positional argument`, serviceAccFlag)
110110
}
111111

112112
if serviceAccMail == "" || !strings.Contains(serviceAccMail, "@") {

internal/cmd/server/service-account/detach/detach.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func parseInput(p *print.Printer, cmd *cobra.Command, inputArgs []string) (*inpu
106106
serviceAccMail = inputArgs[0]
107107
p.Warn("using a positional argument for the service account email is deprecated and will be removed in 2027-01. Please use '--%s' instead.\n", serviceAccFlag)
108108
} else {
109-
return nil, fmt.Errorf(`service account must be specified by using either the --%s flag or as a positional argument`, serviceAccFlag)
109+
return nil, fmt.Errorf(`service account must be specified by using either the --%s flag or (deprecated) as a positional argument`, serviceAccFlag)
110110
}
111111

112112
if serviceAccMail == "" || !strings.Contains(serviceAccMail, "@") {

0 commit comments

Comments
 (0)