Skip to content

Commit 53a4278

Browse files
authored
Do not require period if one-shot mode (#216)
Signed-off-by: Jose Fuentes <[email protected]>
1 parent 25024b6 commit 53a4278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/agent/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func getConfiguration(ctx context.Context) (Config, *client.PreflightClient) {
9191
}
9292
}
9393

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

0 commit comments

Comments
 (0)