Skip to content

Commit

Permalink
feat: revert if delegation manager is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
igorline committed Mar 30, 2024
1 parent 5ed7eb3 commit 052ef7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/operator/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ func RegisterCmd(p utils.Prompter) *cli.Command {
return fmt.Errorf("%w: with error %s", ErrInvalidYamlFile, err)
}

if operatorCfg.ELDelegationManagerAddress == "" {
return fmt.Errorf("\n%w: ELDelegationManagerAddress is not set", ErrInvalidYamlFile)
}

fmt.Printf(
"\r%s Operator configuration file validated successfully %s\n",
utils.EmojiCheckMark,
Expand Down

0 comments on commit 052ef7d

Please sign in to comment.