You've already forked step-ca-cli
mirror of
https://github.com/smallstep/cli.git
synced 2025-08-09 03:22:43 +03:00
Change error message when --admin-subject
and --remote-management=false
This commit is contained in:
@@ -267,7 +267,7 @@ func initAction(ctx *cli.Context) (err error) {
|
||||
case firstSuperAdminSubject != "" && !enableRemoteManagement:
|
||||
// providing the first super admin subject only works with DB-backed provisioners,
|
||||
// thus remote management should be enabled.
|
||||
return errs.IncompatibleFlagWithFlag(ctx, "admin-subject", "remote-management")
|
||||
return errors.New("flag '--admin-subject' is only supported when '--remote-management' is enabled")
|
||||
}
|
||||
|
||||
var password string
|
||||
|
Reference in New Issue
Block a user