]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager: client: reformat function fix
authorAleš Mrázek <ales.mrazek@nic.cz>
Tue, 13 Dec 2022 16:00:27 +0000 (17:00 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Tue, 10 Jan 2023 18:57:14 +0000 (19:57 +0100)
manager/knot_resolver_manager/cli/cmd/config.py

index 6ce63a55f0ff43efba9e908f54401bb1907e7f77..b790f38d1065437bf0990ef9ce6176b362c1ac33 100644 (file)
@@ -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)