mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fixed customlocation parsing (#19893)
Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
@@ -206,7 +206,7 @@ export class ConnectToControllerDialog extends ControllerDialogBase {
|
|||||||
|
|
||||||
if (controllerModel.info.connectionMode === ConnectionMode.direct) {
|
if (controllerModel.info.connectionMode === ConnectionMode.direct) {
|
||||||
const rawCustomLocation = <string>controllerModel.controllerConfig?.metadata.annotations['management.azure.com/customLocation'];
|
const rawCustomLocation = <string>controllerModel.controllerConfig?.metadata.annotations['management.azure.com/customLocation'];
|
||||||
const exp = /customlocations\/([\S]*)/;
|
const exp = /customLocations\/([\S]*)/;
|
||||||
controllerModel.info.customLocation = <string>exp.exec(rawCustomLocation)?.pop();
|
controllerModel.info.customLocation = <string>exp.exec(rawCustomLocation)?.pop();
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user