summaryrefslogtreecommitdiff
path: root/src/op_mode/config_mgmt.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-01-23 12:15:40 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-01-23 14:36:03 -0600
commit3dc53da7a5e717a869ef4fd72fbfe530fb19ac5b (patch)
tree4007105676ad3b03f14b72d713d751c81cb7213e /src/op_mode/config_mgmt.py
parent90bd28bd9c487d4f2e4e8555dccc0b1e89886ab0 (diff)
downloadvyos-1x-3dc53da7a5e717a869ef4fd72fbfe530fb19ac5b.tar.gz
vyos-1x-3dc53da7a5e717a869ef4fd72fbfe530fb19ac5b.zip
graphql: T4953: remove convert_kwargs_to_snake_case decorator
Diffstat (limited to 'src/op_mode/config_mgmt.py')
-rwxr-xr-xsrc/op_mode/config_mgmt.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/op_mode/config_mgmt.py b/src/op_mode/config_mgmt.py
index 0ffb1468b..66de26d1f 100755
--- a/src/op_mode/config_mgmt.py
+++ b/src/op_mode/config_mgmt.py
@@ -20,17 +20,17 @@ import typing
import vyos.opmode
from vyos.config_mgmt import ConfigMgmt
-def show_commit_diff(raw: bool, rev: int, revb: typing.Optional[int],
+def show_commit_diff(raw: bool, rev: int, rev2: typing.Optional[int],
commands: bool):
config_mgmt = ConfigMgmt()
- config_diff = config_mgmt.show_commit_diff(rev, revb, commands)
+ config_diff = config_mgmt.show_commit_diff(rev, rev2, commands)
if raw:
- revb = (rev+1) if revb is None else revb
+ rev2 = (rev+1) if rev2 is None else rev2
if commands:
- d = {f'config_command_diff_{revb}_{rev}': config_diff}
+ d = {f'config_command_diff_{rev2}_{rev}': config_diff}
else:
- d = {f'config_file_diff_{revb}_{rev}': config_diff}
+ d = {f'config_file_diff_{rev2}_{rev}': config_diff}
return d
return config_diff