Skip to content

Commit 2a3d54e

Browse files
Merge pull request openshift#8033 from mjturek/fix-service-instance-list
OCPBUGS-29587: Power VS: Fix service instance list
2 parents 0481a93 + f546001 commit 2a3d54e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/asset/installconfig/powervs/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ func (c *Client) ListServiceInstances(ctx context.Context) ([]string, error) {
663663
continue
664664
}
665665

666-
if resourceInstance.Type != nil && *resourceInstance.Type == "service_instance" {
666+
if resourceInstance.Type != nil && (*resourceInstance.Type == "service_instance" || *resourceInstance.Type == "composite_instance") {
667667
serviceInstances = append(serviceInstances, fmt.Sprintf("%s %s", *resource.Name, *resource.GUID))
668668
}
669669
}
@@ -738,7 +738,7 @@ func (c *Client) ServiceInstanceGUIDToName(ctx context.Context, id string) (stri
738738
continue
739739
}
740740

741-
if resourceInstance.Type != nil && *resourceInstance.Type == "service_instance" {
741+
if resourceInstance.Type != nil && (*resourceInstance.Type == "service_instance" || *resourceInstance.Type == "composite_instance") {
742742
if resourceInstance.GUID != nil && *resourceInstance.GUID == id {
743743
if resourceInstance.Name == nil {
744744
return "", nil

0 commit comments

Comments
 (0)