summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-11-01 11:20:57 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-11-01 13:38:47 -0500
commitc6f7ef4b84b25bf8c35e3b0755d2e973a072ebd5 (patch)
tree4d80d4df549687a896ac30c996aa53b93ec07e09 /python
parentf50f7b043a8636a57fc61330d94550734d2826b5 (diff)
downloadvyos-1x-c6f7ef4b84b25bf8c35e3b0755d2e973a072ebd5.tar.gz
vyos-1x-c6f7ef4b84b25bf8c35e3b0755d2e973a072ebd5.zip
op-mode: T4791: decamelize raw output of 'show_*' before normalization
Diffstat (limited to 'python')
-rw-r--r--python/vyos/opmode.py2
1 files changed, 2 insertions, 0 deletions
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)