mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
Remove get_all_certs_keys() from interfaces.py (#3753)
- Remove method 'get_all_certs_keys()' from interfaces.py - Also remove 'get_all_certs_keys()' from plugins/null.py and corresponding unit test
This commit is contained in:
@@ -300,19 +300,6 @@ class IInstaller(IPlugin):
|
||||
|
||||
"""
|
||||
|
||||
def get_all_certs_keys():
|
||||
"""Retrieve all certs and keys set in configuration.
|
||||
|
||||
:returns: tuples with form `[(cert, key, path)]`, where:
|
||||
|
||||
- `cert` - str path to certificate file
|
||||
- `key` - str path to associated key file
|
||||
- `path` - file path to configuration file
|
||||
|
||||
:rtype: list
|
||||
|
||||
"""
|
||||
|
||||
def save(title=None, temporary=False):
|
||||
"""Saves all changes to the configuration files.
|
||||
|
||||
|
||||
@@ -40,9 +40,6 @@ class Installer(common.Plugin):
|
||||
def supported_enhancements(self):
|
||||
return []
|
||||
|
||||
def get_all_certs_keys(self):
|
||||
return []
|
||||
|
||||
def save(self, title=None, temporary=False):
|
||||
pass # pragma: no cover
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ class InstallerTest(unittest.TestCase):
|
||||
self.assertTrue(isinstance(self.installer.more_info(), str))
|
||||
self.assertEqual([], self.installer.get_all_names())
|
||||
self.assertEqual([], self.installer.supported_enhancements())
|
||||
self.assertEqual([], self.installer.get_all_certs_keys())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user