Skip to content

Commit

Permalink
Fix container infra nodegroup data source 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 a4c7fe2 commit 44b7da7
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,12 @@ func testAccCheckContainerInfraV1NodeGroupDataSourceID(n string) resource.TestCh
}
}

func testAccContainerInfraV1NodeGroupDataSourceBasic(clusterResource string) string {
func testAccContainerInfraV1NodeGroupDataSourceBasic(nodeGroupResource string) string {
return fmt.Sprintf(`
%s
data "openstack_containerinfra_nodegroup_v1" "cluster_1" {
cluster_id = "${openstack_containerinfra_cluster_v1.cluster_1.name}"
name = "${openstack_containerinfra_nodegroup_v1.node_group_1.name}"
data "openstack_containerinfra_nodegroup_v1" "nodegroup_1" {
name = "${openstack_containerinfra_nodegroup_v1.nodegroup_1.name}"
}
`, clusterResource)
`, nodeGroupResource)
}

0 comments on commit 44b7da7

Please sign in to comment.