Skip to content

OpenHorizon captures (and send into docker) trailing whitespace in environment variables (AnyLog testing) #177

@ericaquaronne

Description

@ericaquaronne

During deployment test with Anylog (in an Agent/Edge Node) we noticed that OpenHorizon captures (and send into docker) trailing whitespace in environment variables

Stepts to reproduce:
Set env variables for AnyLog (in docker-makefiles/) – for example I’ve set DEFAULT_DBMS in edgelake_operator.env to have an empty space at the end of the value
Deploy node – make publish EDGELAKE_TYPE=operator
Attach to container, you’ll notice a trailing whitespace
root@localhost:~/service-edgelake# docker exec -it 119d9ad92ee6 /bin/sh
/app # echo "|${DEFAULT_DBMS}|"
|edgex |
Expect: No trailing spaces
Actual: trailing space

Metadata

Metadata

Assignees

No one assigned

    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