1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[brightbox] Add check in update requests to ensure some options have been passed in

This commit is contained in:
Paul Thornthwaite 2010-11-11 21:02:20 +00:00 committed by geemus
parent cd9322ae4d
commit 62ea7eddc2
5 changed files with 5 additions and 0 deletions

View file

@ -4,6 +4,7 @@ module Fog
class Real
def update_account(options = {})
return nil if options.empty? || options.nil?
request(
:expects => [200],
:method => 'PUT',

View file

@ -5,6 +5,7 @@ module Fog
def update_api_client(identifier, options = {})
return nil if identifier.nil? || identifier == ""
return nil if options.empty? || options.nil?
request(
:expects => [200],
:method => 'PUT',

View file

@ -5,6 +5,7 @@ module Fog
def update_image(identifier, options = {})
return nil if identifier.nil? || identifier == ""
return nil if options.empty? || options.nil?
request(
:expects => [200],
:method => 'PUT',

View file

@ -5,6 +5,7 @@ module Fog
def update_server(identifier, options = {})
return nil if identifier.nil? || identifier == ""
return nil if options.empty? || options.nil?
request(
:expects => [200],
:method => 'PUT',

View file

@ -5,6 +5,7 @@ module Fog
def update_user(identifier, options = {})
return nil if identifier.nil? || identifier == ""
return nil if options.empty? || options.nil?
request(
:expects => [200],
:method => 'PUT',