-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python extension path fix - Azure App Service Manage Task #7044
Conversation
@@ -128,7 +129,7 @@ export class KuduServiceUtils { | |||
} | |||
|
|||
private _getExtensionLocalPath(extensionInfo: JSON): string { | |||
var extensionId: string = extensionInfo['id']; | |||
var extensionId: string = extensionInfo['id'].replace(pythonExtensionPrefix, ""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want to do this only for python ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, planned to do only for Python. but the check wont harm other extensions, as they dont have this prefix as of now. will be removing this once dynamic extension feature is available. //adding comment to ensure the same.
@@ -53,8 +54,8 @@ export class KuduServiceUtils { | |||
|
|||
for(var extensionID of extensionList) { | |||
var siteExtensionDetails = null; | |||
if(siteExtensionMap[extensionID]) { | |||
siteExtensionDetails = siteExtensionMap[extensionID]; | |||
if(siteExtensionMap[extensionID] || (extensionID.startsWith('python') && siteExtensionMap[pythonExtensionPrefix + extensionID])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do case insensitive check?
The same applies for replace call below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
case insensitive check is not required here, as it worked for early scenarios.
However, When extension is made dynamic list, it will be handled.
@@ -53,8 +54,8 @@ export class KuduServiceUtils { | |||
|
|||
for(var extensionID of extensionList) { | |||
var siteExtensionDetails = null; | |||
if(siteExtensionMap[extensionID]) { | |||
siteExtensionDetails = siteExtensionMap[extensionID]; | |||
if(siteExtensionMap[extensionID] || (extensionID.startsWith('python') && siteExtensionMap[pythonExtensionPrefix + extensionID])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some comment on why we are doing this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
No description provided.