Updating an environment variable appends the value instead of replacing it. (#5)
renegadespork opened 3 weeks 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

  • renegadespork commented 3 weeks 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 3 weeks ago

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

  • OneDev changed state to 'Closed' 3 weeks 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...
Page is in error, reload to recover