Ticket #1220: authstore.rb.patch
| File authstore.rb.patch, 1.2 kB (added by technogeeky, 7 months ago) |
|---|
-
a/lib/puppet/network/authstore.rb
old new 269 269 rescue ArgumentError => detail 270 270 raise AuthStoreError, "Invalid IP address pattern %s" % value 271 271 end 272 when /^([ a-zA-Z][-\w]*\.)+[-\w]+$/: # a full hostname272 when /^([\w]([-\w]*[\w])*\.)+[-\w]+$/: # a full hostname 273 273 @name = :domain 274 274 @pattern = munge_name(value) 275 when /^\*(\.([ a-zA-Z][-\w]*)){1,}$/: # *.domain.com275 when /^\*(\.([\w]([-\w]*[\w])*)){1,}$/: # *.domain.com 276 276 @name = :domain 277 277 @pattern = munge_name(value) 278 278 @pattern.pop # take off the '*' 279 279 @length = @pattern.length 280 when /^([\w]([-\w]*[\w])*)$/: # a single-word hostname, no wildcards 281 @name = :domain 282 @pattern = munge_name(value) 280 283 else 281 284 # Else, use the IPAddr class to determine if we've got a 282 285 # valid IP address.