Commit 2b16278e authored by Lang Martin's avatar Lang Martin
Browse files

nomad: use the same DevMode logic for Bootstrap as serf metadata

parent 57a999f0
Showing with 1 addition and 1 deletion
+1 -1
......@@ -1213,7 +1213,7 @@ func (s *Server) setupRaft() error {
// If we are in bootstrap or dev mode and the state is clean then we can
// bootstrap now.
if s.config.Bootstrap || s.config.DevMode {
if s.config.Bootstrap || (s.config.DevMode && !s.config.DevDisableBootstrap) {
hasState, err := raft.HasExistingState(log, stable, snap)
if err != nil {
return err
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment