Skip to content

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

Open

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='marisa.strong@ucop.edu eric.lopatin@ucop.edu terrence.brady@ucop.edu david.loy@ucop.edu mark.reyes@ucop.edu'
+ '[' marisa.strong@ucop.edu eric.lopatin@ucop.edu terrence.brady@ucop.edu david.loy@ucop.edu mark.reyes@ucop.edu ']'
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 marisa.strong@ucop.edu eric.lopatin@ucop.edu terrence.brady@ucop.edu david.loy@ucop.edu mark.reyes@ucop.edu
marisa.strong@ucop.edu eric.lopatin@ucop.edu terrence.brady@ucop.edu david.loy@ucop.edu mark.reyes@ucop.edu
++ _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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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