awslabs / amazon-ebs-autoscale

Don't run out of disk space on your EC2 instance when generating or working with large files. Automatically add EBS volumes to a filesystem mount point in response to disk utilization.
MIT License
111 stars 60 forks source link

get_metadata variable expansion in subcommand improvement #62

Open microbioticajon opened 1 year ago

microbioticajon commented 1 year ago

Description of changes:

Im not sure if this is a bug on not (EDIT: looks like it is a bug!)

I was having issues with get_metadata using IMDV2. The token_wrapper variable did not appear to be being expanded properly in the subcommand and was failing silently.

The only way I could get this function to work for me was to put the header parts into an array and let the subcommand build the command string from that.

Is this a better approach?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.