def check_bucket_name_dns_support(bucket_host, bucket_name):
 if ('%(bucket)s' not in bucket_host):
  return False
 return check_bucket_name_dns_conformity(bucket_name)

def check_bucket_name_dns_support ( bucket_host , bucket_name ) : if ( '%(bucket)s' not in bucket_host ) : return False return check_bucket_name_dns_conformity ( bucket_name )
check whether either the host_bucket support buckets and either bucket name is dns compatible .