Skip to content

Commit 4c229c6

Browse files
authored
Merge pull request apache#8120 from dbalek/dbalek/oci-region-fix
OCI Cloud Assets: Select OCI Profile should display correct region code.
2 parents b080e1e + 13bcc42 commit 4c229c6

File tree

1 file changed

+1
-3
lines changed
  • enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/steps

1 file changed

+1
-3
lines changed

enterprise/cloud.oracle/src/org/netbeans/modules/cloud/oracle/steps/TenancyStep.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import com.oracle.bmc.identity.model.Tenancy;
2222
import java.util.ArrayList;
23-
import java.util.Collection;
2423
import java.util.LinkedList;
2524
import java.util.List;
2625
import java.util.Optional;
@@ -32,7 +31,6 @@
3231
import org.netbeans.modules.cloud.oracle.assets.CloudAssets;
3332
import org.netbeans.modules.cloud.oracle.assets.Steps.Values;
3433
import org.netbeans.modules.cloud.oracle.items.IncompatibleTenancyItem;
35-
import org.netbeans.modules.cloud.oracle.items.OCIItem;
3634
import org.netbeans.modules.cloud.oracle.items.TenancyItem;
3735
import org.openide.NotifyDescriptor;
3836
import org.openide.util.NbBundle;
@@ -72,7 +70,7 @@ public NotifyDescriptor createInput() {
7270
for (OCIProfile p : profiles) {
7371
Tenancy t = p.getTenancyData();
7472
if (t != null) {
75-
items.add(new NotifyDescriptor.QuickPick.Item(p.getId(), Bundle.SelectProfile_Description(t.getName(), t.getHomeRegionKey())));
73+
items.add(new NotifyDescriptor.QuickPick.Item(p.getId(), Bundle.SelectProfile_Description(t.getName(), p.getRegion().getRegionCode())));
7674
}
7775
}
7876
if (profiles.stream().filter(p -> p.getTenancy().isPresent()).count() == 0) {

0 commit comments

Comments
 (0)