Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix | Issue with Project Name and Longname in Leverage CLI #212

Closed
exequielrafaela opened this issue Jul 19, 2023 · 0 comments · Fixed by #215
Closed

Fix | Issue with Project Name and Longname in Leverage CLI #212

exequielrafaela opened this issue Jul 19, 2023 · 0 comments · Fixed by #215
Assignees
Labels
bug Something isn't working patch

Comments

@exequielrafaela
Copy link
Member

exequielrafaela commented Jul 19, 2023

Describe the Bug:

When a project name (or "longname") with spaces is used in the Leverage CLI during the Landing Zone bootstrap deployment process here https://leverage.binbash.co/try-leverage/ , it creates directories with spaces in their names. This leads to a series of problems as the directories are not handled correctly due to the spaces.

Previous issue was reported by @juanmatias and could be find here: #145

Expected Behavior:

The expected behavior is that the CLI should either reject project names or longnames with spaces or handle them correctly without causing any issues. Alternatively, the CLI could use only the shortname for directory names.

Steps to Reproduce:

  1. Run the Leverage CLI with a project name or longname that includes spaces.
  2. Observe that the CLI creates directories with spaces in their names during the https://leverage.binbash.co/try-leverage/leverage-project-setup/ process.
  3. Notice the resulting issues due to the spaces in the directory names when running leverage terraform init commands and other similar ones.

Environment:

OS: Linux
Version: Latest

Additional Context:

A potential solution could be to enforce valid characters for directory names in the CLI or to use only the shortname for directory names. This issue needs to be addressed to prevent problems when using project names (or longnames) with spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants