diff options
author | Christian Breunig <christian@breunig.cc> | 2024-10-19 15:49:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-19 15:49:25 +0200 |
commit | 1bf2cf737e9e7f09ee1d5c62691cd5bfa6eb9f05 (patch) | |
tree | aa9690bd054958a2819aca16ddc15b121d28d1e4 /src/services/api/rest | |
parent | 3f933f1642debfca5c9e3873790a5742ef242c75 (diff) | |
parent | 52e3ba35c09237744340c2cce4cba1783ec3f2be (diff) | |
download | vyos-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.py | 4 |
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') |