From 23fd7f5166cb94f78de4e1eb50051992a5362148 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 17 Dec 2024 00:36:00 +0700 Subject: [PATCH] Fix pki-server selftest-enable/disable --- base/server/python/pki/server/cli/selftest.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/base/server/python/pki/server/cli/selftest.py b/base/server/python/pki/server/cli/selftest.py index 4e5f8be2c7f..2115156ec0d 100644 --- a/base/server/python/pki/server/cli/selftest.py +++ b/base/server/python/pki/server/cli/selftest.py @@ -57,7 +57,9 @@ def __init__(self): self.parser.add_argument( '--help', action='store_true') - self.parser.add_argument('selftest_id') + self.parser.add_argument( + 'selftest_id', + nargs='?') def print_help(self): print('Usage: pki-server selftest-enable [OPTIONS] []') @@ -141,7 +143,9 @@ def __init__(self): self.parser.add_argument( '--help', action='store_true') - self.parser.add_argument('selftest_id') + self.parser.add_argument( + 'selftest_id', + nargs='?') def print_help(self): print('Usage: pki-server selftest-disable [OPTIONS] []')