From 09bb02a69168ad43d1f08a27559dc387b81aa279 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Tue, 7 Jun 2022 11:37:35 +1000 Subject: [PATCH] fix: add missing environment policy record for use when recording deployments --- .../deployed_versions_for_version_and_environment.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/pact_broker/api/resources/deployed_versions_for_version_and_environment.rb b/lib/pact_broker/api/resources/deployed_versions_for_version_and_environment.rb index 4d993c885..c531c1a80 100644 --- a/lib/pact_broker/api/resources/deployed_versions_for_version_and_environment.rb +++ b/lib/pact_broker/api/resources/deployed_versions_for_version_and_environment.rb @@ -43,6 +43,10 @@ def policy_name :'versions::deployed_versions' end + def policy_record + environment + end + private attr_reader :deployed_version, :existing_deployed_version