@@ -207,7 +207,6 @@ func runTraceMode(cfg *config.LoaderConfiguration, readIATFromFile bool, writeIA
207207 TraceGranularity : parseTraceGranularity (cfg ),
208208 TraceDuration : durationToParse ,
209209
210- YAMLPath : yamlPath ,
211210 TestMode : false ,
212211
213212 Functions : functions ,
@@ -218,7 +217,7 @@ func runTraceMode(cfg *config.LoaderConfiguration, readIATFromFile bool, writeIA
218217 return
219218 }
220219
221- log .Infof ("Using %s as a service YAML specification file.\n " , experimentDriver . Configuration . YAMLPath )
220+ log .Infof ("Using %s as a service YAML specification file.\n " , yamlPath )
222221
223222 experimentDriver .GenerateSpecification ()
224223 experimentDriver .ReadOrWriteFileSpecification (writeIATsToFile , readIATFromFile )
@@ -227,6 +226,7 @@ func runTraceMode(cfg *config.LoaderConfiguration, readIATFromFile bool, writeIA
227226
228227func runRPSMode (cfg * config.LoaderConfiguration , readIATFromFile bool , writeIATsToFile bool ) {
229228 experimentDuration := determineDurationToParse (cfg .ExperimentDuration , cfg .WarmupDuration )
229+ yamlPath := parseYAMLSpecification (cfg )
230230
231231 rpsTarget := cfg .RpsTarget
232232 coldStartPercentage := cfg .RpsColdStartRatioPercentage
@@ -246,9 +246,7 @@ func runRPSMode(cfg *config.LoaderConfiguration, readIATFromFile bool, writeIATs
246246
247247 DirigentConfiguration : dirigentConfig ,
248248
249- YAMLPath : parseYAMLSpecification (cfg ),
250-
251- Functions : generator .CreateRPSFunctions (cfg , dirigentConfig , warmFunction , warmStartCount , coldFunctions , coldStartCount ),
249+ Functions : generator .CreateRPSFunctions (cfg , dirigentConfig , warmFunction , warmStartCount , coldFunctions , coldStartCount , yamlPath ),
252250 })
253251
254252 // Skip experiments execution during dry run mode
0 commit comments