diff options
author | Jordan Running <jr@getchef.com> | 2016-02-18 15:43:56 -0600 |
---|---|---|
committer | Jordan Running <jr@getchef.com> | 2016-02-24 14:16:30 -0600 |
commit | b0971ce66e69cefd6e148a648f01667c0146e577 (patch) | |
tree | 87f2d5b56f1fe50f27d69150133f5201a12ae527 /lib/chef_zero/rest_base.rb | |
parent | 2469894eab12f24893916b571a981e082dfe97df (diff) | |
download | chef-zero-b0971ce66e69cefd6e148a648f01667c0146e577.tar.gz |
Move default keys logic into ActorDefaultKeyEndpoint; fix #putjr/pedant-keys-2
Diffstat (limited to 'lib/chef_zero/rest_base.rb')
-rw-r--r-- | lib/chef_zero/rest_base.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef_zero/rest_base.rb b/lib/chef_zero/rest_base.rb index a0c9633..71f6f15 100644 --- a/lib/chef_zero/rest_base.rb +++ b/lib/chef_zero/rest_base.rb @@ -267,12 +267,12 @@ module ChefZero # Strip off /organizations/chef if we are in single org mode if rest_path[0..1] != [ 'organizations', server.options[:single_org] ] raise "Unexpected URL #{rest_path[0..1]} passed to build_uri in single org mode" - else - "#{base_uri}/#{rest_path[2..-1].join('/')}" end - else - "#{base_uri}/#{rest_path.join('/')}" + + return self.class.build_uri(base_uri, rest_path[2..-1]) end + + self.class.build_uri(base_uri, rest_path) end def self.build_uri(base_uri, rest_path) |