diff --git a/docs/en_US/release_notes_6_13.rst b/docs/en_US/release_notes_6_13.rst index c0bad2e36..92c361d46 100644 --- a/docs/en_US/release_notes_6_13.rst +++ b/docs/en_US/release_notes_6_13.rst @@ -49,3 +49,4 @@ Bug fixes | `Issue #7617 `_ - Fixed an issue where Azure cloud deployment failed. | `Issue #7625 `_ - Fixed Spanish translations typo. | `Issue #7630 `_ - Ensure that If the trigger function definition is changed, drop and recreate the trigger in the schema diff. + | `Issue #7632 `_ - Fixed an issue where a user could not authenticate using Azure CLI on OSX. diff --git a/runtime/src/js/pgadmin.js b/runtime/src/js/pgadmin.js index 14bbaeeb9..984b2e912 100644 --- a/runtime/src/js/pgadmin.js +++ b/runtime/src/js/pgadmin.js @@ -70,6 +70,13 @@ function startDesktopMode() { misc.writeServerLog('pgAdmin Command: "' + command + '"'); misc.writeServerLog('Environment: '); Object.keys(process.env).forEach(function(key) { + // Below code is included only for Mac OS as default path for azure CLI + // installation path is not included in PATH variable while spawning + // runtime environment. + if (platform() === 'darwin' && key === 'PATH') { + let updated_path = process.env[key] + ':/usr/local/bin'; + process.env[key] = updated_path; + } misc.writeServerLog(' - ' + key + ': ' + process.env[key]); }); misc.writeServerLog('--------------------------------------------------------\n');