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-license task should check if file starts with #cloud-config, and if so, put the license header after that line #338

Open
jacobbmay opened this issue Nov 8, 2024 · 0 comments

Comments

@jacobbmay
Copy link

Currently the fix-license task will put the header at the beginning of a cloud-config template. This causes cloud-init to not use the cloud-config contents at startup.

This can be a frustrating issue to try to resolve for someone that starts using this task in a repo since you can end up with VMs that start successfully and look healthy, but can't be accessed since the users in the cloud-config aren't being set up.

Looks like it already checks for #! in bash files and puts the license after that, so I imagine it isn't a huge ask to have it check for #cloud-config as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant