summaryrefslogtreecommitdiff
path: root/lib/chef_zero/rest_base.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2015-03-27 17:46:05 -0700
committerdanielsdeleo <dan@getchef.com>2015-03-27 17:46:05 -0700
commit5b056eef1803c655782b5a2a5ce8caee67ffd07e (patch)
treed2f84dbd170e6d7275290d7781324680c06d8cfa /lib/chef_zero/rest_base.rb
parentd9fe481bf29f7325a0128fa53777df57f1951359 (diff)
downloadchef-zero-5b056eef1803c655782b5a2a5ce8caee67ffd07e.tar.gz
Initial implementation of socketless requests
Diffstat (limited to 'lib/chef_zero/rest_base.rb')
-rw-r--r--lib/chef_zero/rest_base.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef_zero/rest_base.rb b/lib/chef_zero/rest_base.rb
index 8156e7c..48d423a 100644
--- a/lib/chef_zero/rest_base.rb
+++ b/lib/chef_zero/rest_base.rb
@@ -195,8 +195,9 @@ 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
- "#{base_uri}/#{rest_path[2..-1].join('/')}"
else
"#{base_uri}/#{rest_path.join('/')}"
end