File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -128,20 +128,18 @@ func render(cmd *cobra.Command, args []string) error {
128
128
if err != nil {
129
129
return fmt .Errorf ("something wrong with json %v" , configJson )
130
130
}
131
-
132
- log .Printf ("got json config of %v" , config )
133
-
134
- } else {
135
-
136
- for _ , param := range args [1 :] {
137
- split := strings .Split (param , "=" )
138
- if len (split ) < 2 {
139
- return fmt .Errorf ("parameters must be on form <key>=<value>, found %s" , param )
140
- }
141
- config [split [0 ]] = strings .Join (split [1 :], "=" )
131
+
132
+ }
133
+
134
+ for _ , param := range args [1 :] {
135
+ split := strings .Split (param , "=" )
136
+ if len (split ) < 2 {
137
+ return fmt .Errorf ("parameters must be on form <key>=<value>, found %s" , param )
142
138
}
143
-
139
+ config [ split [ 0 ]] = strings . Join ( split [ 1 : len ( split )], "=" )
144
140
}
141
+
142
+ log .Printf ("got config of %v" ,config )
145
143
146
144
cache := runtime .NewInMemoryCache ()
147
145
runtime .InitHTTP (cache )
You can’t perform that action at this time.
0 commit comments