Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/root/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ func (f *apiFlags) runAPICommand(cmd *cobra.Command, args []string) (commandErr
}
}()

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

ln, lnCleanup, err := newListener(ctx, f.listenAddr)
Expand Down
Loading