Skip to content

Commit

Permalink
check core factory for nil
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Downs <brian.downs@gmail.com>
  • Loading branch information
briandowns committed Jul 2, 2021
1 parent e98546d commit 7a1a39b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cluster/managed.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ func (c *Cluster) deleteNodePasswdSecret(ctx context.Context) {
logrus.Infof("waiting for node name to be set")
continue
}
if c.runtime == nil {
// the core factory may not yet be initialized so we
// want to wait until it is so not to evoke a panic.
if c.runtime.Core == nil {
logrus.Infof("runtime is not yet initialized")
continue
}
Expand Down

0 comments on commit 7a1a39b

Please sign in to comment.