Skip to content

Commit f546001

Browse files
committed
Power VS: Do not filter out 'composite_instance' when listing resources
Due to a change in how Power VS workspaces are cataloged, new service instances are not picked up by the installer. This patch expands the filter to include the new catalog name.
1 parent 9c5e54d commit f546001

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)