diff options
Diffstat (limited to 'python')
| -rwxr-xr-x | python/vyos/xml_ref/generate_op_cache.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/vyos/xml_ref/generate_op_cache.py b/python/vyos/xml_ref/generate_op_cache.py index 83900c7c7..f49b2290b 100755 --- a/python/vyos/xml_ref/generate_op_cache.py +++ b/python/vyos/xml_ref/generate_op_cache.py @@ -93,7 +93,7 @@ def translate_command(s: str, pos: list[str]) -> str: # it means the command is incorrect, # e.g., it references "$6" when it only has five words. if re.search(r'_place_holder_', s): - print(f"Command translation failed: {s}") + print(f'Command translation failed: {s}') sys.exit(1) return s @@ -155,7 +155,9 @@ def insert_node( else: name = n.get('name') if not name: - raise ValueError("Node name is required for all node types except <virtualTagNode>") + raise ValueError( + 'Node name is required for all node types except <virtualTagNode>' + ) if path is None: path = [] |
