Skip to content

Commit

Permalink
Turn the signing key to be optional in RBP
Browse files Browse the repository at this point in the history
  • Loading branch information
oshratZairi committed Nov 18, 2024
1 parent c926e42 commit 286d4ff
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lifecycle/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ func promote(c *cli.Context) error {
return cliutils.WrongNumberOfArgumentsHandler(c)
}

if err := assertSigningKeyProvided(c); err != nil {
return err
}

lcDetails, err := createLifecycleDetailsByFlags(c)
if err != nil {
return err
Expand Down Expand Up @@ -354,13 +350,6 @@ func validateDistributeCommand(c *cli.Context) error {
return nil
}

func assertSigningKeyProvided(c *cli.Context) error {
if c.String(cliutils.SigningKey) == "" {
return errorutils.CheckErrorf("the --%s option is mandatory", cliutils.SigningKey)
}
return nil
}

func createLifecycleDetailsByFlags(c *cli.Context) (*coreConfig.ServerDetails, error) {
lcDetails, err := cliutils.CreateServerDetailsWithConfigOffer(c, true, commonCliUtils.Platform)
if err != nil {
Expand Down

0 comments on commit 286d4ff

Please sign in to comment.