Use base_url method for get_tenant_by_id

This commit is contained in:
Mark Maglana 2013-10-08 12:05:31 -07:00
parent 94e072ef29
commit a9bd9a1f7f
1 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@ module Aviator
def url
service_spec = session_data[:access][:serviceCatalog].find{|s| s[:type] == 'identity' }
"#{ service_spec[:endpoints][0][:adminURL] }/tenants/#{ params[:id] }"
"#{ base_url }/tenants/#{ params[:id] }"
end
end