diff --git a/pg_backup_api/pg_backup_api/logic/utility_controller.py b/pg_backup_api/pg_backup_api/logic/utility_controller.py index 46b0858..326b64d 100644 --- a/pg_backup_api/pg_backup_api/logic/utility_controller.py +++ b/pg_backup_api/pg_backup_api/logic/utility_controller.py @@ -73,10 +73,13 @@ def diagnose() -> 'Response': else: server_dict[server] = Server(conf) + available_models = barman.__config__.model_names() + models = [barman.__config__.get_model(x) for x in available_models] + # errors list with duplicate paths between servers errors_list = barman.__config__.servers_msg_list - barman_diagnose.exec_diagnose(server_dict, errors_list) + barman_diagnose.exec_diagnose(server_dict, models, errors_list, show_config_source=False) # new outputs are appended, so grab the last one stored_output = json.loads(output._writer.json_output["_INFO"][-1])