From c6f7ef4b84b25bf8c35e3b0755d2e973a072ebd5 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 1 Nov 2022 11:20:57 -0500 Subject: op-mode: T4791: decamelize raw output of 'show_*' before normalization --- python/vyos/opmode.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/vyos') diff --git a/python/vyos/opmode.py b/python/vyos/opmode.py index 727e118a8..2e896c8e6 100644 --- a/python/vyos/opmode.py +++ b/python/vyos/opmode.py @@ -16,6 +16,7 @@ import re import sys import typing +from humps import decamelize class Error(Exception): @@ -200,6 +201,7 @@ def run(module): if not args["raw"]: return res else: + res = decamelize(res) res = _normalize_field_names(res) from json import dumps return dumps(res, indent=4) -- cgit v1.2.3