Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Fix jq invocation errors with numeric task roles #2405

Conversation

zhiltsov-max
Copy link
Contributor

Fixes messages in task stderr log when using a numeric-only task role:

...
jq: error: Invalid numeric literal at EOF at line 1, column 6 (while parsing '.0009.') at <top-level>, line 1:
.0009.taskStatuses.taskStatusArray[] | .containerIp, .containerPorts, .taskIndex
jq: error: syntax error, unexpected IDENT, expecting $end (Unix shell quoting issues?) at <top-level>, line 1:
.0009.taskStatuses.taskStatusArray[] | .containerIp, .containerPorts, .taskIndex      
jq: 2 compile errors
...
  • Added quotes for task role names in jq queries

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 52.659% when pulling ea9783d on zhiltsov-max:zhiltsov-max/fix-jq-errors-with-numeric-taskroles into 1e0c142 on Microsoft:master.

@abuccts
Copy link
Member

abuccts commented Mar 27, 2019

Merged, thanks for your contribution!

@abuccts abuccts merged commit d181ca1 into microsoft:master Mar 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants