Skip to content

Commit

Permalink
Fix container infra nodegroup resource test
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
  • Loading branch information
MrFreezeex committed Jun 22, 2022
1 parent d839753 commit 9687439
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func testAccCheckContainerInfraV1NodeGroupExists(n string, nodeGroup *nodegroups
}

containerInfraClient.Microversion = containerInfraV1NodeGroupMinMicroversion
clusterID, nodeGroupID, err := parseVolumeTypeAccessID(rs.Primary.ID)
clusterID, nodeGroupID, err := parseNodeGroupID(rs.Primary.ID)
if err != nil {
return err
}
Expand All @@ -77,7 +77,7 @@ func testAccCheckContainerInfraV1NodeGroupExists(n string, nodeGroup *nodegroups
return err
}

if found.UUID != rs.Primary.ID {
if found.UUID != nodeGroupID {
return fmt.Errorf("Nodegroup not found")
}

Expand Down

0 comments on commit 9687439

Please sign in to comment.