ForgeRock/fr-config-manager

fr-config-promote output seems to be JS objects/invalid JSON

Closed this issue · 1 comments

I am converting our custom promotion script to use the fr-config-promote tool for maintainability, but in its current state the result of command seem to be JS objects and not JSON, which makes it hard/impossible to parse it with something like jq.

For example, executing the following script:

fr-config-promote check-locked-status

Results in:

{ description: 'Environment unlocked', result: 'unlocked' }

Which seems to be a stringified JS object and not JSON as it doesn't have quotes around the key and uses single quotes. I first thought it was my shell/terminal app that did some parsing but in some of the output in other issues (e.g. #127) I see the same output.

I can of course use some Regex to parse the result but it would be so much easier to have the results be actual JSON.

Never mind, duplicate of #194 and it's already fixed in the new version, thanks!