Skip to content

Commit

Permalink
OCI Cloud Assets: Select OCI Profile should display Correct region code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbalek committed Jan 7, 2025
1 parent d72b592 commit 13bcc42
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import com.oracle.bmc.identity.model.Tenancy;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Optional;
Expand All @@ -32,7 +31,6 @@
import org.netbeans.modules.cloud.oracle.assets.CloudAssets;
import org.netbeans.modules.cloud.oracle.assets.Steps.Values;
import org.netbeans.modules.cloud.oracle.items.IncompatibleTenancyItem;
import org.netbeans.modules.cloud.oracle.items.OCIItem;
import org.netbeans.modules.cloud.oracle.items.TenancyItem;
import org.openide.NotifyDescriptor;
import org.openide.util.NbBundle;
Expand Down Expand Up @@ -72,7 +70,7 @@ public NotifyDescriptor createInput() {
for (OCIProfile p : profiles) {
Tenancy t = p.getTenancyData();
if (t != null) {
items.add(new NotifyDescriptor.QuickPick.Item(p.getId(), Bundle.SelectProfile_Description(t.getName(), t.getHomeRegionKey())));
items.add(new NotifyDescriptor.QuickPick.Item(p.getId(), Bundle.SelectProfile_Description(t.getName(), p.getRegion().getRegionCode())));
}
}
if (profiles.stream().filter(p -> p.getTenancy().isPresent()).count() == 0) {
Expand Down

0 comments on commit 13bcc42

Please sign in to comment.