Open jlbruno opened 4 years ago
@tobiaslohr same behaviour here... --sync option passed cause resulting JSON output to be invalid.
Does this also happen without the --json
option set? I'm looking at the code, but the loop's pretty solid and hasn't changed in months. I'm a bit irritated why this would start now.
@wundrian , yes it happens always whenever --sync option passed.
./sfcc-ci-macos sandbox:create --sync --realm zzrk --ttl 1 Creation of new sandbox 009 for realm zzrk finished (288037 ms). Sandbox id is b56049c6-4745-4abc-9fa3-a74d9acf9481, status of sandbox is started. You may use
sfcc-ci sandbox:listto check the status of the sandbox. Creation of new sandbox 009 for realm zzrk finished (288236 ms). Sandbox id is b56049c6-4745-4abc-9fa3-a74d9acf9481, status of sandbox is started. You may use
sfcc-ci sandbox:listto check the status of the sandbox. Creation of new sandbox 009 for realm zzrk finished (298174 ms). Sandbox id is b56049c6-4745-4abc-9fa3-a74d9acf9481, status of sandbox is started. You may use
sfcc-ci sandbox:listto check the status of the sandbox.
The easiest solution, since I assume you're piping it through jq
is to "slurp" all responses into an array, then process only the first element:
... | jq -s '.[0].key'
-s is for slurp
@jlbruno @astound-ci Is this issue still existing?
@tobiaslohr I unfortunately am not able to test this at this time. @astound-ci can you help?
Running the sandbox:create command and looking at the json being returned - it seems to be returning the json 3 times for the 1 sandbox creation.
sfcc-ci sandbox:create -r xxxx -t 1 -j -s
Here's what I see returned this morning - edited to remove realm data and sb id, but the sb ID was the same.