diff options
author | Luke Kanies <luke@madstop.com> | 2009-02-18 17:00:27 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2009-02-19 17:51:21 -0600 |
commit | bd8d09747fd6c0dce89c17da41eb67ad92823cf7 (patch) | |
tree | 52c125acfcc5501c9282010d6ebcbe9ee8880eab /lib/puppet/indirector/request.rb | |
parent | d3bc1e8279b6e1d372ab3624982788cde026461d (diff) | |
download | puppet-bd8d09747fd6c0dce89c17da41eb67ad92823cf7.tar.gz puppet-bd8d09747fd6c0dce89c17da41eb67ad92823cf7.tar.xz puppet-bd8d09747fd6c0dce89c17da41eb67ad92823cf7.zip |
Providing better indirection authorization errors
The errors now include the indirection and key,
or the full URI used.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/indirector/request.rb')
-rw-r--r-- | lib/puppet/indirector/request.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/puppet/indirector/request.rb b/lib/puppet/indirector/request.rb index 8227db174..c6f268ab2 100644 --- a/lib/puppet/indirector/request.rb +++ b/lib/puppet/indirector/request.rb @@ -78,6 +78,11 @@ class Puppet::Indirector::Request method == :search end + def to_s + return uri if uri + return "/%s/%s" % [indirection_name, key] + end + private # Parse the key as a URI, setting attributes appropriately. |