pbs / gorson

experiment with go and aws ssm parameter store
MIT License
9 stars 3 forks source link

Value with space and colon doubly quoted with single quotes #70

Closed socketbox closed 1 year ago

socketbox commented 2 years ago

With gorson get --format env /DEV/PBSORG > .env running against pbs-digi-preprod, I get a KV pair that looks like this: PBSORG_BADGE_CTA_HEADLINE=''COMPLETE COVERAGE:''

That causes bash to choke when sourcing the file: /etc/pbsorg/.env: line 29: COVERAGE:: command not found.

The full value in the parameter store is COMPLETE COVERAGE:. Odd that Gorson is putting two pairs of single quotes around it, as there are many other values with whitespace that aren't treated as such.

socketbox commented 2 years ago

This might actually be due to the fact that we're using v4.2.0. Will confirm shortly.

socketbox commented 2 years ago

No, just downloaded v11 and it's still doubly single-quoted: PBSORG_BADGE_CTA_HEADLINE=''COMPLETE COVERAGE:''

socketbox commented 2 years ago

@yhakbar makes the point that this value could have resulted from the incorrect parsing of input by gorson put.