@@ -268,26 +268,14 @@ def __export_config_async(endpoint: platform.Platform, what: list[str], **kwargs
268268 if len (non_existing_projects ) > 0 :
269269 utilities .exit_fatal (f"Project key(s) '{ ',' .join (non_existing_projects )} ' do(es) not exist" , errcodes .NO_SUCH_KEY )
270270
271- calls = {
272- options .WHAT_SETTINGS : [__JSON_KEY_SETTINGS , platform .export ],
273- options .WHAT_RULES : [__JSON_KEY_RULES , rules .export ],
274- options .WHAT_PROFILES : [__JSON_KEY_PROFILES , qualityprofiles .export ],
275- options .WHAT_GATES : [__JSON_KEY_GATES , qualitygates .export ],
276- options .WHAT_PROJECTS : [__JSON_KEY_PROJECTS , projects .export ],
277- options .WHAT_APPS : [__JSON_KEY_APPS , applications .export ],
278- options .WHAT_PORTFOLIOS : [__JSON_KEY_PORTFOLIOS , portfolios .export ],
279- options .WHAT_USERS : [__JSON_KEY_USERS , users .export ],
280- options .WHAT_GROUPS : [__JSON_KEY_GROUPS , groups .export ],
281- }
282-
283271 log .info ("Exporting configuration from %s" , kwargs [options .URL ])
284272 key_list = kwargs [options .KEYS ]
285273 sq_settings = {__JSON_KEY_PLATFORM : endpoint .basics ()}
286274 is_first = True
287275 q = Queue (maxsize = 0 )
288276 with utilities .open_file (file , mode = "w" ) as fd :
289277 print ("{" , file = fd )
290- for what_item , call_data in calls .items ():
278+ for what_item , call_data in _EXPORT_CALLS .items ():
291279 if what_item not in what :
292280 continue
293281 ndx , func = call_data
0 commit comments