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

Environment variable values cannot contain the character '=' #224

Open
jennydaman opened this issue Mar 16, 2023 · 0 comments
Open

Environment variable values cannot contain the character '=' #224

jennydaman opened this issue Mar 16, 2023 · 0 comments
Labels
bug good first issue Good for newcomers

Comments

@jennydaman
Copy link
Collaborator

pman should allow for environment variable values to contain = characters, e.g.

body="$(cat << EOF
{
  "env": ["varname=varvalue=containsequals"],
  "jid": "example-123",
  "args": [
    "--saveinputmeta", "--saveoutputmeta",
    "--prefix", "hello_test_"
  ],
  "auid": "cube-test",
  "number_of_workers": "1",
  "cpu_limit": "1000",
  "memory_limit": "200",
  "gpu_limit": "0",
  "image": "ghcr.io/fnndsc/pl-simpledsapp:2.1.0",
  "entrypoint": ["simpledsapp"],
  "type": "ds"
}
EOF
)"

curl -H 'Accept: application/json' -H 'Content-Type: application/json' \
  --data "$body" -s http://localhost:5010/api/v1/

However this is not allowed:

if len(s.split('=', 1)) != 2:

@jennydaman jennydaman added bug good first issue Good for newcomers labels Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant