def _get_default_bucket_url(ud=None):
    if ud and ud.has_key('bucket_default'):
        default_bucket_name = ud['bucket_default']
    else:
        default_bucket_name = DEFAULT_BUCKET_NAME
    # TODO: Check if th bucket 'default_bucket_name' is accessible to everyone
    # because it is being accessed as a URL
    if ud:
        bucket_url = ud.get("default_bucket_url", None)
    else:
        bucket_url = None
    if not bucket_url:
        bucket_url = os.path.join(SERVICE_ROOT, default_bucket_name)
    log.debug("Default bucket url: %s" % bucket_url)
    return bucket_url
dataset/ETHPy150Open chapmanb/cloudbiolinux/installed_files/ec2autorun.py/_get_default_bucket_url/original