Skip to content

Commit

Permalink
⚙️ Fixup condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed May 7, 2022
1 parent 7c9cb4b commit 6173305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func agent(apiAddress string, dir []string, force bool) error {

l := logging.Logger("c3os")

tokenNotDefined := (c.C3OS != nil || c.C3OS.NetworkToken == "")
tokenNotDefined := (c.C3OS == nil || c.C3OS.NetworkToken == "")

if c.C3OS == nil && !c.K3s.Enabled && !c.K3sAgent.Enabled {
fmt.Println("No c3os/k3s configuration provided, exiting.")
Expand Down

0 comments on commit 6173305

Please sign in to comment.