File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,11 @@ func Command(run *params.Run) *cobra.Command {
7171 return err
7272 }
7373 }
74+
75+ if err := run .GetConfigFromConfigMap (ctx ); err != nil {
76+ log .Printf ("Warning: cannot get pipelines-as-code config map in pipelines-as-code namespace. Using defaults. Error: %v\n " , err )
77+ }
78+
7479 if len (filenames ) == 0 {
7580 return fmt .Errorf ("you need to at least specify a file with -f" )
7681 }
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ func TestSplitArgsInMap(t *testing.T) {
4242
4343func TestCommandFilenameSetProperly (t * testing.T ) {
4444 cs := & params.Run {
45- Clients : clients.Clients {ClientInitialized : true },
45+ Clients : clients.Clients {ClientInitialized : false },
4646 Info : info.Info {Pac : & info.PacOpts {}},
4747 }
4848 cmd := Command (cs )
You can’t perform that action at this time.
0 commit comments