You've already forked step-ca-cli
mirror of
https://github.com/smallstep/cli.git
synced 2026-10-29 00:17:23 +03:00
Add missing flag and 404 error.
This commit is contained in:
@@ -202,6 +202,11 @@ be stored in the 'x5c' header.`,
|
||||
Usage: `Private key <path>, used to sign a JWT, corresponding to the certificate that will
|
||||
be stored in the 'sshpop' header.`,
|
||||
}
|
||||
|
||||
Team = cli.StringFlag{
|
||||
Name: "team",
|
||||
Usage: "The team <name> used to bootstrap the environment.",
|
||||
}
|
||||
)
|
||||
|
||||
// ParseTimeOrDuration is a helper that returns the time or the current time
|
||||
|
||||
@@ -37,6 +37,9 @@ func BootstrapTeam(ctx *cli.Context, name string) error {
|
||||
return errors.Wrap(err, "error getting team data")
|
||||
}
|
||||
if resp.StatusCode >= 400 {
|
||||
if resp.StatusCode == http.StatusNotFound {
|
||||
return errors.New("error getting team data: team does not exist")
|
||||
}
|
||||
return errors.Wrap(readError(resp.Body), "error getting team data")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user