def _find_domains(args, installer): if args.domains is None: domains = display_ops.choose_names(installer) else: domains = args.domains if not domains: raise errors.Error("Please specify --domains, or --installer that " "will help in domain names autodiscovery") return domains
def _find_domains(args, installer): if args.domains is None: domains = display_ops.choose_names(installer) else: domains = args.domains if not domains: sys.exit("Please specify --domains, or --installer that will " "help in domain names autodiscovery") return domains
def _find_domains(config, installer): if config.domains: domains = config.domains else: domains = display_ops.choose_names(installer) if not domains: raise errors.Error("Please specify --domains, or --installer that " "will help in domain names autodiscovery") return domains
def _find_domains(config, installer): if not config.domains: domains = display_ops.choose_names(installer) # record in config.domains (so that it can be serialised in renewal config files), # and set webroot_map entries if applicable for d in domains: cli.process_domain(config, d) else: domains = config.domains if not domains: raise errors.Error("Please specify --domains, or --installer that " "will help in domain names autodiscovery") return domains
def _common_run(args, config, acc, authenticator, installer): if args.domains is None: doms = display_ops.choose_names(installer) else: doms = args.domains if not doms: sys.exit("Please specify --domains, or --installer that will " "help in domain names autodiscovery") acme = client.Client(config, acc, authenticator, installer) # Validate the key and csr client.validate_key_csr(acc.key) if authenticator is not None: if acc.regr is None: try: acme.register() except errors.LetsEncryptClientError: sys.exit("Unable to register an account with ACME server") return acme, doms
def _call(cls, installer): from letsencrypt.display.ops import choose_names return choose_names(installer)