Description: Do not use stdlib::extname which isn't available in Debian
Author: Thomas Goirand <zigo@debian.org>
Forwarded: not-needed
Last-Update: 2021-10-20

--- puppet-module-openstacklib-19.4.0.orig/manifests/policy/default.pp
+++ puppet-module-openstacklib-19.4.0/manifests/policy/default.pp
@@ -45,7 +45,7 @@ define openstacklib::policy::default (
       $content = '{}'
     }
     'yaml': {
-      if stdlib::extname($file_path) == '.json' {
+      if $file_path =~ /.*\.json/ {
         # NOTE(tkajinam): It is likely that user is not aware of migration from
         #                 policy.json to policy.yaml
         fail("file_path: ${file_path} should be a yaml file instead of a json file")
