Skip to content

Commit 859cda1

Browse files
committed
Fix the resourcegroup error when create arm template in selected resource group
1 parent 27a687d commit 859cda1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/intellij/arm/CreateDeploymentForm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ protected void doOKAction() {
148148
.withNewResourceGroup(rgNameTextFiled.getText(),
149149
com.microsoft.azure.management.resources.fluentcore.arm.Region.fromName(region.getName()));
150150
} else {
151-
ResourceGroup rg = ((ResourceEx<ResourceGroup>) rgNameCb.getSelectedItem()).getResource();
151+
ResourceGroup rg = (ResourceGroup) rgNameCb.getSelectedItem();
152152
List<ResourceEx<Deployment>> deployments = AzureMvpModel.getInstance()
153153
.getDeploymentByRgName(subs.getId(), rg.getName());
154154
boolean isExist = deployments.parallelStream()

0 commit comments

Comments
 (0)