diff --git a/puppet-module-pipeline.yaml b/puppet-module-pipeline.yaml
index 7dbd7638a76a7f5e640c100d216878929f0078b8..493b0416e23585b4f9ebe66313dd5b010e5e7cc6 100644
--- a/puppet-module-pipeline.yaml
+++ b/puppet-module-pipeline.yaml
@@ -30,8 +30,8 @@ pdk-validate:
 
       touch Gemfile Gemfile.local
 
-      # For PDK 3.2.0
-      if [ "$PDK_VERSION" == "3.2.0" ]; then
+      # For PDK 3.2.0 (it reports as the unreleased 3.1.0)
+      if [ "$PDK_VERSION" == "3.1.0" ]; then
         echo "Locking rexml to 3.2.5"
         sed -e '/"rexml"/d' -e "/'rexml'/d" -i Gemfile Gemfile.local
         echo 'gem "rexml", "= 3.2.5"' >> Gemfile.local