Commit 1acfba24 authored by Andrew Roetker's avatar Andrew Roetker

(PDB-1100) Remove hyphens in validation regex for classnames in terminus

This commit removes the hyphens from the classname validation regex in
the terminus that we no longer support Puppet <4 for PuppetDB.
parent 2e61ea9f
......@@ -291,7 +291,7 @@ class Puppet::Resource::Catalog::Puppetdb < Puppet::Indirector::REST
# case problem here:
# Once that problem is solved and older versions of Puppet that have
# the bug are no longer supported we can probably remove this code.
unless other_ref =~ /^[A-Z][a-z0-9_-]*(::[A-Z][a-z0-9_-]*)*\[.*\]/m
unless other_ref =~ /^[A-Z][a-z0-9_]*(::[A-Z][a-z0-9_]*)*\[.*\]/m
rel = edge_to_s(resource_hash_to_ref(resource_hash), other_ref, param)
raise Puppet::Error, "Invalid relationship: #{rel}, because " +
"#{other_ref} doesn't seem to be in the correct format. " +
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment