From: Aleš Mrázek Date: Tue, 13 Dec 2022 16:00:27 +0000 (+0100) Subject: manager: client: reformat function fix X-Git-Tag: v6.0.0a1~12^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80f22b344712af49540eb44f6db81cecfd3e65ac;p=thirdparty%2Fknot-resolver.git manager: client: reformat function fix --- diff --git a/manager/knot_resolver_manager/cli/cmd/config.py b/manager/knot_resolver_manager/cli/cmd/config.py index 6ce63a55f..b790f38d1 100644 --- a/manager/knot_resolver_manager/cli/cmd/config.py +++ b/manager/knot_resolver_manager/cli/cmd/config.py @@ -28,12 +28,11 @@ def operation_to_method(operation: Operations) -> Literal["PUT", "GET", "DELETE" return "PUT" elif operation == Operations.DELETE: return "DELETE" - return "GET" def reformat(data: str, req_format: Formats) -> str: - dict = try_to_parse(data).to_raw() + dict = try_to_parse(data) if req_format == Formats.YAML: return yaml.dump(dict, indent=4)