def check_config_sanity(config):
 if (config.http01_port == config.tls_sni_01_port):
  raise errors.ConfigurationError('Trying to run http-01 and tls-sni-01 on the same port ({0})'.format(config.tls_sni_01_port))
 if (config.namespace.domains is not None):
  for domain in config.namespace.domains:
   util.enforce_domain_sanity(domain)

def check_config_sanity ( config ) : if ( config . http01_port == config . tls_sni_01_port ) : raise errors . ConfigurationError ( 'Trying to run http-01 and tls-sni-01 on the same port ({0})' . format ( config . tls_sni_01_port ) ) if ( config . namespace . domains is not None ) : for domain in config . namespace . domains : util . enforce_domain_sanity ( domain )
validate command line options and display error message if requirements are not met .