From c284578ee64ba58c638760ad30f21bf44cfe9781 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Mon, 30 Sep 2013 22:39:59 -0400 Subject: [PATCH] All OpenStack heat requests must contain User/Key. Updates the OpenStack Orchestration request() method so that all requests contain the X-Auth-User and X-Auth-Key headers. Heat requires these parameters so that it can make subsequent requests based on the users behalf. For reference see here: https://github.com/openstack/python-heatclient/blob/master/heatclient/common/http.py#L186 --- lib/fog/openstack/orchestration.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/fog/openstack/orchestration.rb b/lib/fog/openstack/orchestration.rb index c344afc56..0a2fd70a4 100644 --- a/lib/fog/openstack/orchestration.rb +++ b/lib/fog/openstack/orchestration.rb @@ -138,7 +138,9 @@ module Fog :headers => { 'Content-Type' => 'application/json', 'Accept' => 'application/json', - 'X-Auth-Token' => @auth_token + 'X-Auth-Token' => @auth_token, + 'X-Auth-User' => @openstack_username, + 'X-Auth-Key' => @openstack_api_key }.merge!(params[:headers] || {}), :host => @host, :path => "#{@path}/#{@tenant_id}/#{params[:path]}",