Skip to content

Commit 9b6296e

Browse files
authored
Merge pull request #2485 from gtardif/fix_pull-interval_flag
Do not block --pull-interval flag when using URL gordon ref
2 parents e379d52 + 935ac6e commit 9b6296e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/root/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ func (f *apiFlags) runAPICommand(cmd *cobra.Command, args []string) (commandErr
8181
}
8282
}()
8383

84-
if f.pullIntervalMins > 0 && !config.IsOCIReference(agentsPath) {
85-
return errors.New("--pull-interval flag can only be used with OCI references, not local files")
84+
if f.pullIntervalMins > 0 && !config.IsOCIReference(agentsPath) && !config.IsURLReference(agentsPath) {
85+
return errors.New("--pull-interval flag can only be used with OCI or URL references, not local files")
8686
}
8787

8888
ln, lnCleanup, err := newListener(ctx, f.listenAddr)

0 commit comments

Comments
 (0)