summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-20 20:26:35 +0200
committerChristian Breunig <christian@breunig.cc>2024-05-20 20:28:35 +0200
commit0d6e44179bae5f73d37502884194656b34b1c4f9 (patch)
tree5dccc4c511215ece9d2723c2f606ced4eb8dfd85 /op-mode-definitions
parentf45b1b598c024194d1f8c7e2e3e5c17354f6c8f3 (diff)
downloadvyos-1x-0d6e44179bae5f73d37502884194656b34b1c4f9.tar.gz
vyos-1x-0d6e44179bae5f73d37502884194656b34b1c4f9.zip
op-mode: T6367: fix "force commit-archive" TypeError
/usr/bin/config-mgmt requires an argument OR to be symbolically linked to *commit-revision or *commit-archive, for which it interprets argv[0] through the useful trickery: https://github.com/vyos/vyos-1x/blob/current/python/vyos/config_mgmt.py#L693-L700 Traceback (most recent call last): File "/usr/bin/config-mgmt", line 33, in <module> sys.exit(load_entry_point('vyos==1.3.0', 'console_scripts', 'config-mgmt')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/vyos/config_mgmt.py", line 746, in run func = getattr(config_mgmt, args['subcommand']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: attribute name must be string, not 'NoneType'
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/force-commit-archive.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/force-commit-archive.xml.in b/op-mode-definitions/force-commit-archive.xml.in
index 162323c20..46836f967 100644
--- a/op-mode-definitions/force-commit-archive.xml.in
+++ b/op-mode-definitions/force-commit-archive.xml.in
@@ -6,7 +6,7 @@
<properties>
<help>Manually archive configuration</help>
</properties>
- <command>/usr/bin/config-mgmt</command>
+ <command>/etc/commit/post-hooks.d/02vyos-commit-archive; printf "\n"</command>
</leafNode>
</children>
</node>