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:
parent
cd9322ae4d
commit
62ea7eddc2
5 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,7 @@ module Fog
|
|||
class Real
|
||||
|
||||
def update_account(options = {})
|
||||
return nil if options.empty? || options.nil?
|
||||
request(
|
||||
:expects => [200],
|
||||
:method => 'PUT',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue