Skip to content

Commit b035747

Browse files
authored
Merge pull request #348 from songjiaxun/use_exisiting_rg
fix: Use current value of resource group's managedBy property
2 parents b73e6b4 + cb2b63b commit b035747

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/utils/azure/azure_helper.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ func (az *Client) EnsureResourceGroup(ctx context.Context, name, location string
6262
} else {
6363
tags = make(map[string]*string)
6464
}
65+
if managedBy == nil {
66+
managedBy = group.ManagedBy
67+
}
6568
// Tags for correlating resource groups with prow jobs on testgrid
6669
tags["buildID"] = stringPointer(os.Getenv("BUILD_ID"))
6770
tags["jobName"] = stringPointer(os.Getenv("JOB_NAME"))

0 commit comments

Comments
 (0)