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

[Feature] - Allow update of bare metal user data without reading from a file #352

Open
optik-aper opened this issue Sep 26, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@optik-aper
Copy link
Member

Is your feature request related to a problem? Please describe.
It would be nice to be able to make the --userdata flag on the bare-metal user-data set --userdata=... accept a string directly from the command line and not have to read in a file:

vultr-cli bare-metal user-data set 08dad366-0d84-469a-b2a4-fc319e4e4dbc --userdata="VEVTVCBVU0VSIERBVEEzMzMzMwo="                                                                                             
error reading user-data : open VEVTVCBVU0VSIERBVEEzMzMzMwo=: no such file or directory
exit status 1

Describe the solution you'd like
A separate flag for filename to parse and make --userdata read in a string instead of a file. Or have it check for a file then try parsing it as a string (though that option seems worse).

Describe alternatives you've considered
It's just an update to the bare metal route--there is no special route in play here. So, this is kind of the only way to make this happen.

@optik-aper optik-aper added the enhancement New feature or request label Sep 26, 2023
@optik-aper optik-aper self-assigned this Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant