Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Make sure that UUIDs when null upstream are printed as empty and not as all 0s #17

Open
perigrin opened this issue Sep 26, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@perigrin
Copy link
Contributor

ether| perigrin: ew, conch on the v2 api fills in all 0 uuids for device location when it doesn't exist.. please don't replicate that in kosh for v3
ether| that is, compare conch api get /device/A352777X8B11547 | json to conch --json device A352777X8B11547 get | json -- see all the zeros for location info

This may be difficult because Go (kinda similar to Perl) has an opinion that all variables should have a value. There is a default value and for UUIDs that may be all 0s. We will need to detect the difference and key off of that somehow.

@karenetheridge
Copy link
Contributor

It would be even better to leave out empty sections entirely, if possible.

@karenetheridge karenetheridge added the bug Something isn't working label Nov 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants