diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-10-18 15:42:59 +0300 |
---|---|---|
committer | Nataliia Solomko <natalirs1985@gmail.com> | 2024-10-18 15:42:59 +0300 |
commit | 8943446c8c79c6daad2326ddc7a59950123b35d2 (patch) | |
tree | eca41b73cac77d5bc6362f3f13d3b6adf531978c /src/services/api | |
parent | e5d2ac54150922640c08bacab124e96c7bbd1f7f (diff) | |
download | vyos-1x-8943446c8c79c6daad2326ddc7a59950123b35d2.tar.gz vyos-1x-8943446c8c79c6daad2326ddc7a59950123b35d2.zip |
pki: T4914: Rewrite the PKI op mode in the new style
Diffstat (limited to 'src/services/api')
-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') |