mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-31 09:29:13 +00:00 
			
		
		
		
	api: bootstrap: drop usage of global authority import
This commit is contained in:
		| @@ -1,14 +1,17 @@ | ||||
| import logging | ||||
| from certidude.decorators import serialize | ||||
| from certidude.config import cp | ||||
| from certidude import authority, config, const | ||||
| from certidude import config, const | ||||
| from jinja2 import Template | ||||
|  | ||||
| logger = logging.getLogger(__name__) | ||||
|  | ||||
| class BootstrapResource(object): | ||||
|     def __init__(self, authority): | ||||
|         self.authority = authority | ||||
|  | ||||
|     def on_get(self, req, resp): | ||||
|         resp.body = Template(open(config.BOOTSTRAP_TEMPLATE).read()).render( | ||||
|             authority = const.FQDN, | ||||
|             servers = authority.list_server_names()) | ||||
|             servers = self.authority.list_server_names()) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user