Skip to content

Commit

Permalink
Don't delete the options if they were never there!
Browse files Browse the repository at this point in the history
  • Loading branch information
seanhandley committed Jun 7, 2013
1 parent 888bcc5 commit 700a330
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/fog/serverlove/compute.rb
Expand Up @@ -66,8 +66,10 @@ def request(params)
"Accept" => "application/json"
}
)
params[:body] = encode_pairs(params[:options]) unless params[:options].nil?
params.delete(:options)
unless params[:options].nil?
params[:body] = encode_pairs(params[:options])
params.delete(:options)
end
response = @connection.request(params)

raise_if_error!(response)
Expand Down

0 comments on commit 700a330

Please sign in to comment.