Skip to content

Commit

Permalink
Wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Apr 3, 2024
1 parent 0a2b37f commit f96c46b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/supwd.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ func (h *Hammer) createBmcSuperuser() error {
return fmt.Errorf("failed to fetch SuperUser password %w", err)
}

if resp.GetFeatureDisabled() {
h.log.Info("creation of superuser disabled")
if resp.SuperUserPassword == "" {
h.log.Info("creation of superuser disabled because password is empty")
return nil
}

Expand Down

0 comments on commit f96c46b

Please sign in to comment.