mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 11:01:37 -05:00
change back to using locationVariableName (#11559)
This commit is contained in:
@@ -192,7 +192,7 @@
|
|||||||
"os.environ[\"DOCKER_PASSWORD\"] = arc_docker_password\n",
|
"os.environ[\"DOCKER_PASSWORD\"] = arc_docker_password\n",
|
||||||
"if os.name == 'nt':\n",
|
"if os.name == 'nt':\n",
|
||||||
" print(f'If you don\\'t see output produced by azdata, you can run the following command in a terminal window to check the deployment status:\\n\\t {os.environ[\"AZDATA_NB_VAR_KUBECTL\"]} get pods -A')\n",
|
" print(f'If you don\\'t see output produced by azdata, you can run the following command in a terminal window to check the deployment status:\\n\\t {os.environ[\"AZDATA_NB_VAR_KUBECTL\"]} get pods -A')\n",
|
||||||
"run_command(f'azdata arc dc create --connectivity-mode {arc_data_controller_connectivity_mode} -n {arc_data_controller_name} -ns {arc_data_controller_namespace} -s {arc_subscription} -g {arc_resource_group} -l {arc_data_controller_display_location} -p {arc_profile}')\n",
|
"run_command(f'azdata arc dc create --connectivity-mode {arc_data_controller_connectivity_mode} -n {arc_data_controller_name} -ns {arc_data_controller_namespace} -s {arc_subscription} -g {arc_resource_group} -l {arc_data_controller_location} -p {arc_profile}')\n",
|
||||||
"print(f'Azure Arc Data controller cluster: {arc_data_controller_name} created.') "
|
"print(f'Azure Arc Data controller cluster: {arc_data_controller_name} created.') "
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|||||||
@@ -1052,13 +1052,14 @@ async function processAzureLocationsField(context: AzureLocationsFieldContext):
|
|||||||
label: label.value!,
|
label: label.value!,
|
||||||
variableName: context.fieldInfo.locationVariableName
|
variableName: context.fieldInfo.locationVariableName
|
||||||
});
|
});
|
||||||
|
context.onNewInputComponentCreated(context.fieldInfo.locationVariableName, { component: locationDropdown });
|
||||||
}
|
}
|
||||||
if (context.fieldInfo.displayLocationVariableName) {
|
if (context.fieldInfo.displayLocationVariableName) {
|
||||||
context.fieldInfo.subFields!.push({
|
context.fieldInfo.subFields!.push({
|
||||||
label: label.value!,
|
label: label.value!,
|
||||||
variableName: context.fieldInfo.displayLocationVariableName
|
variableName: context.fieldInfo.displayLocationVariableName
|
||||||
});
|
});
|
||||||
context.onNewInputComponentCreated(context.fieldInfo.displayLocationVariableName, { component: locationDropdown });
|
context.onNewInputComponentCreated(context.fieldInfo.displayLocationVariableName, { component: locationDropdown, inputValueTransformer: (value => azurecoreApi.getRegionDisplayName(value)) });
|
||||||
}
|
}
|
||||||
addLabelInputPairToContainer(context.view, context.components, label, locationDropdown, context.fieldInfo);
|
addLabelInputPairToContainer(context.view, context.components, label, locationDropdown, context.fieldInfo);
|
||||||
return locationDropdown;
|
return locationDropdown;
|
||||||
|
|||||||
Reference in New Issue
Block a user