Fix deprecation warning in new puppet versions