Skip to content
This repository was archived by the owner on May 13, 2021. It is now read-only.
This repository was archived by the owner on May 13, 2021. It is now read-only.

trailing slash required in bucket_prefix #11

@klumhru

Description

@klumhru

I had a problem with the stack where I had set the S3BucketPrefix to vpnconfigs/prefix_

This broke the cisco configurator lambda as it does a string split on "/" and joins on [:-2]. This drops the "prefix_" part.

transit-vpc-push-cicso-config.py@L128

def getBucketPrefix(bucket_name, bucket_key):
    #Figure out prefix from known bucket_name and bucket_key
    bucket_prefix = '/'.join(bucket_key.split('/')[:-2])
    if len(bucket_prefix) > 0:
        bucket_prefix += '/'
    return bucket_prefix

All this is fine, but it would be nice if the docs would specify that the value for bucket prefix must have a trailing slash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions