Updating an environment variable appends the value instead of replacing it. (#5)
Jesse opened 10 months ago

When using the planet update request, updating an existing environment variable will append the new value of that variable onto the end rather than replacing the value with the new one.

Example:
old: BACKUPS=true
update: BACKUPS=false
new: BACKUPS=truefalse

  • Jesse commented 10 months ago

    I haven’t tested this, but I suspect this also applies to tags as they use a similar method.

    I should write a generalized function that fixes this and just run both env variables and tags through it.

    This is a good opportunity to make env variables Optional in the PlanetMetadata struct.

  • OneDev commented 10 months ago

    State changed as code fixing the issue is committed (0996e057)

  • OneDev changed state to 'Closed' 10 months ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Bug
Priority
Normal
Assignee
Issue Votes (0)
Watchers (1)
Reference
planetary-server-manager/psm-api#5
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover