summaryrefslogtreecommitdiff
path: root/src/services/api/rest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-10-19 15:49:25 +0200
committerGitHub <noreply@github.com>2024-10-19 15:49:25 +0200
commit1bf2cf737e9e7f09ee1d5c62691cd5bfa6eb9f05 (patch)
treeaa9690bd054958a2819aca16ddc15b121d28d1e4 /src/services/api/rest
parent3f933f1642debfca5c9e3873790a5742ef242c75 (diff)
parent52e3ba35c09237744340c2cce4cba1783ec3f2be (diff)
downloadvyos-1x-1bf2cf737e9e7f09ee1d5c62691cd5bfa6eb9f05.tar.gz
vyos-1x-1bf2cf737e9e7f09ee1d5c62691cd5bfa6eb9f05.zip
Merge pull request #4165 from natali-rs1985/T4914-current
pki: T4914: Rewrite the PKI op mode in the new style
Diffstat (limited to 'src/services/api/rest')
-rw-r--r--src/services/api/rest/routers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/api/rest/routers.py b/src/services/api/rest/routers.py
index da981d5bf..5612e947c 100644
--- a/src/services/api/rest/routers.py
+++ b/src/services/api/rest/routers.py
@@ -423,9 +423,9 @@ def create_path_import_pki_no_prompt(path):
correct_paths = ['ca', 'certificate', 'key-pair']
if path[1] not in correct_paths:
return False
- path[1] = '--' + path[1].replace('-', '')
path[3] = '--key-filename'
- return path[1:]
+ path.insert(2, '--name')
+ return ['--pki-type'] + path[1:]
@router.post('/configure')