Skip to content

Commit 541cdb4

Browse files
committed
Properly default --from-repository in run-monitor
1 parent a270fa0 commit 541cdb4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/cmd/openshift-tests/monitor/run/run_monitor_command.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"syscall"
1010
"time"
1111

12+
"github.com/openshift/origin/pkg/clioptions/imagesetup"
1213
"github.com/openshift/origin/pkg/monitortestframework"
1314

1415
"github.com/openshift/origin/pkg/monitor/monitorapi"
@@ -34,10 +35,11 @@ type RunMonitorFlags struct {
3435
genericclioptions.IOStreams
3536
}
3637

37-
func NewRunMonitorOptions(streams genericclioptions.IOStreams) *RunMonitorFlags {
38+
func NewRunMonitorOptions(streams genericclioptions.IOStreams, fromRepository string) *RunMonitorFlags {
3839
return &RunMonitorFlags{
3940
DisplayFromNow: true,
4041
IOStreams: streams,
42+
FromRepository: fromRepository,
4143
}
4244
}
4345

@@ -51,7 +53,7 @@ func NewRunCommand(streams genericclioptions.IOStreams) *cobra.Command {
5153
}
5254

5355
func newRunCommand(name string, streams genericclioptions.IOStreams) *cobra.Command {
54-
f := NewRunMonitorOptions(streams)
56+
f := NewRunMonitorOptions(streams, imagesetup.DefaultTestImageMirrorLocation)
5557

5658
cmd := &cobra.Command{
5759
Use: name,

0 commit comments

Comments
 (0)