Azure / ms-rest-nodeauth

node.js based authentication library for Azure with type definitions
MIT License
33 stars 33 forks source link

Enforce azure cli to output json #65

Closed wilsonge closed 5 years ago

wilsonge commented 5 years ago

If you've run az configure to get non-json default output then you don't get JSON. As a result the JSON.parse immediately fails due to trying to parse the non-json format. This enforces retrieving in JSON format so that we can always parse it whatever the users default value

amarzavery commented 5 years ago

Thank you for contributing the project. The PR has been merged and the new version of the package will be published to npm in ~10 mins.