Skip to content

Bitbucket project name cannot have a space #302

@rmakram-ims

Description

@rmakram-ims

atlantis v 0.4.10
using Bitbucket privately hosted and a lot of my projects have spaces in their names eg "Cloud Infrastructure" etc.
Once my Pull Request is created, I get the following error:

exit status 1: running "sh -c terraform plan -input=false -refresh -no-color -out "/home/USERNAME/.atlantis/repos/Cloud Infrastructure/atlantis-test/5/default/default.tfplan" -var atlantis_user=USERNAME -var atlantis_repo=Cloud Infrastructure/atlantis-test -var atlantis_repo_name="atlantis-test" -var atlantis_repo_owner=Cloud Infrastructure -var atlantis_pull_num=5" in "/home/USERNAME/.atlantis/repos/Cloud Infrastructure/atlantis-test/5/default"
Too many command line arguments. Configuration path expected.

It seems that the issue is coming from the newly added -vars "atlantis_repo" and "atlantis_repo_owner", it could be simply decorated with quotes.

Also once running atlantis apply, I get this error:

exit status 1: running "sh -c terraform apply -input=false -no-color /home/USERNAME/.atlantis/repos/Cloud Infrastructure/atlantis-test/5/default/default.tfplan" in "/home/USERNAME/.atlantis/repos/Cloud Infrastructure/atlantis-test/5/default"
Too many command line arguments. Configuration path expected.

This also looks like it's an issue with the planPath not accepting spaces.

Any chances this could be fixed in the coming release?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions