Skip to content

Commit

Permalink
Fix branching for beta (GoogleCloudPlatform#9928)
Browse files Browse the repository at this point in the history
* fixing version == beta to unless version = ga

* fixing beta branching
  • Loading branch information
unnatinadupalli authored Feb 6, 2024
1 parent ba34f46 commit 9c04e74
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3215,7 +3215,7 @@ func testAccCheckComputeInstanceUpdateMachineType(t *testing.T, n string) resour
}
}

<% if version == "beta"%>
<% unless version == "ga"%>
func TestAccComputeInstance_NetworkAttachment(t *testing.T) {
t.Parallel()
suffix := fmt.Sprintf("%s", acctest.RandString(t, 10))
Expand Down Expand Up @@ -3884,7 +3884,7 @@ func testAccCheckComputeInstanceHasMinCpuPlatform(instance *compute.Instance, mi
}
}

<% if version == "beta" -%>
<% unless version == "ga" -%>
func testAccCheckComputeInstanceHasNetworkAttachment(instance *compute.Instance, networkAttachmentName string) resource.TestCheckFunc {
return func(s *terraform.State) error {
for _, networkInterface := range instance.NetworkInterfaces {
Expand Down Expand Up @@ -8827,7 +8827,7 @@ resource "google_compute_instance" "foobar" {

<% end -%>

<% if version =="beta" -%>
<% unless version =="ga" -%>
func testAccComputeInstance_networkAttachment(context map[string]interface{}) string {
return acctest.Nprintf(`
data "google_compute_image" "my_image" {
Expand Down

0 comments on commit 9c04e74

Please sign in to comment.