Skip to content

Commit

Permalink
fix: drop into maintenance mode if config URL is none (metal)
Browse files Browse the repository at this point in the history
Installer puts `none` if no URL was present in the cmdline on boot, e.g.
when installing from ISO.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
  • Loading branch information
smira authored and talos-bot committed Jun 3, 2021
1 parent 14e696d commit ff62a59
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ func (m *Metal) Configuration(ctx context.Context) ([]byte, error) {
return nil, errors.ErrNoConfigSource
}

if *option == constants.ConfigNone {
return nil, errors.ErrNoConfigSource
}

log.Printf("fetching machine config from: %q", *option)

u, err := url.Parse(*option)
Expand Down

0 comments on commit ff62a59

Please sign in to comment.