Skip to content

Commit

Permalink
Do not require period if one-shot mode (#216)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Fuentes <[email protected]>
  • Loading branch information
j-fuentes authored Feb 15, 2021
1 parent 25024b6 commit 53a4278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func getConfiguration(ctx context.Context) (Config, *client.PreflightClient) {
}
}

if Period == 0 && config.Period == 0 {
if Period == 0 && config.Period == 0 && !OneShot {
log.Fatalf("Failed to load period, must be set as flag or in config")
}

Expand Down

0 comments on commit 53a4278

Please sign in to comment.