diff options
Diffstat (limited to 'base/server/python/pki/server/cli')
-rw-r--r-- | base/server/python/pki/server/cli/nuxwdog.py | 6 | ||||
-rw-r--r-- | base/server/python/pki/server/cli/subsystem.py | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/base/server/python/pki/server/cli/nuxwdog.py b/base/server/python/pki/server/cli/nuxwdog.py index ca9c7c39b..afbd438ff 100644 --- a/base/server/python/pki/server/cli/nuxwdog.py +++ b/base/server/python/pki/server/cli/nuxwdog.py @@ -222,8 +222,7 @@ class NuxwdogEnableCLI(pki.cli.CLI): '/etc/systemd/system/pki-tomcatd.target.wants', old_systemd_unit_file) - new_systemd_unit_file = ('pki-tomcatd-nuxwdog@' + instance.name - + '.service') + new_systemd_unit_file = 'pki-tomcatd-nuxwdog@%s.service' % instance.name new_systemd_link = os.path.join( '/etc/systemd/system/pki-tomcatd-nuxwdog.target.wants', new_systemd_unit_file) @@ -373,8 +372,7 @@ class NuxwdogDisableCLI(pki.cli.CLI): os.chown(filename, instance.uid, instance.gid) def change_systemd_links(self, instance): - old_systemd_unit_file = ('pki-tomcatd-nuxwdog@' + instance.name - + '.service') + old_systemd_unit_file = 'pki-tomcatd-nuxwdog@%s.service' % instance.name old_systemd_link = os.path.join( '/etc/systemd/system/pki-tomcatd-nuxwdog.target.wants', old_systemd_unit_file) diff --git a/base/server/python/pki/server/cli/subsystem.py b/base/server/python/pki/server/cli/subsystem.py index 1be91b10e..f0e38b65e 100644 --- a/base/server/python/pki/server/cli/subsystem.py +++ b/base/server/python/pki/server/cli/subsystem.py @@ -448,7 +448,7 @@ class SubsystemCertExportCLI(pki.cli.CLI): super(SubsystemCertExportCLI, self).__init__( 'export', 'Export subsystem certificate') - def usage(self): + def usage(self): # flake8: noqa print('Usage: pki-server subsystem-cert-export [OPTIONS] <subsystem ID> <cert ID>') print() print(' -i, --instance <instance ID> Instance ID (default: pki-tomcat).') |