Skip to content

uc3 ssm functions are sort of working and not working #21

@terrywbrady

Description

@terrywbrady

My hope for these functions was that they would be universally accessible to all users on all of our servers.

Am I now seeing an error that relates to the python virtual environment?

I think this is a new bug. It has swallowed up a couple hours of my day today.

bash-4.2$ get_ssm_value_by_name batch/email
+ get_ssm_value_by_name batch/email
+ check_ssm_root
+ '[' /uc3/mrt/dev/ ']'
+ '[' /uc3/mrt/dev/ ']'
+ P=batch/email
+ SSMPATH=/uc3/mrt/dev/batch/email
++ aws ssm get-parameter --name /uc3/mrt/dev/batch/email --region us-west-2
++ jq -r .Value
++ jq -r .Parameter
+ val='[email protected] [email protected] [email protected] [email protected] [email protected]'
+ '[' [email protected] [email protected] [email protected] [email protected] [email protected] ']'
bash: [: too many arguments
+ die 'Parameter /uc3/mrt/dev/batch/email not found'
+ echo 'Parameter /uc3/mrt/dev/batch/email not found'
Parameter /uc3/mrt/dev/batch/email not found
+ false
+ echo [email protected] [email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected] [email protected]
++ _pyenv_virtualenv_hook
++ local ret=0
++ '[' -n '' ']'
+++ pyenv sh-activate --quiet
+++ local command
+++ command=sh-activate
+++ '[' 2 -gt 0 ']'
+++ shift
+++ case "$command" in
+++ command pyenv sh-activate --quiet
+++ pyenv sh-activate --quiet
+++ true
++ eval false
+++ false
++ true
++ return 0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions