Skip to content

Commit a6d4134

Browse files
authored
Merge pull request hashicorp#303 from hashicorp/fix-user-latest-modules-policy
namespace to organization
2 parents fcdf267 + 9284ed0 commit a6d4134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

governance/third-generation/cloud-agnostic/http-examples/use-latest-module-versions.sentinel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ retrieve_latest_module_versions = func() {
7575
# But pass the organization parameter
7676
get_public_registry_modules = func() {
7777
req = http.request("https://" + address + "/v1/modules/" +
78-
namespace + "?limit=" + limit + "&verified=true")
78+
organization + "?limit=" + limit + "&verified=true")
7979

8080
# Call TFE API to get modules and unmarshal results
8181
res = json.unmarshal(http.get(req).body)
@@ -166,7 +166,7 @@ validate_modules = func() {
166166
} else {
167167
print("Public registry module", m.source, "used in module",
168168
module_address, "has version constraint", m.version_constraint,
169-
"that does not allow the most version", most_recent_version)
169+
"that does not allow the most recent version", most_recent_version)
170170
validated = false
171171
} // end root module check
172172
} // end version check

0 commit comments

Comments
 (0)