mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[compute|aws] fix pluralization of modify_image_attribute
This commit is contained in:
parent
de72fbf8ce
commit
ed2ed94d3f
2 changed files with 12 additions and 2 deletions
|
@ -70,7 +70,7 @@ module Fog
|
|||
request :get_console_output
|
||||
request :get_password_data
|
||||
request :import_key_pair
|
||||
request :modify_image_attributes
|
||||
request :modify_image_attribute
|
||||
request :modify_snapshot_attribute
|
||||
request :purchase_reserved_instances_offering
|
||||
request :reboot_instances
|
||||
|
@ -85,6 +85,16 @@ module Fog
|
|||
request :monitor_instances
|
||||
request :unmonitor_instances
|
||||
|
||||
# deprecation
|
||||
class Real
|
||||
|
||||
def modify_image_attributes(*params)
|
||||
Formatador.display_line("[yellow][WARN] modify_image_attributes is deprecated, use modify_image_attribute instead[/] [light_black](#{caller.first})[/]")
|
||||
modify_image_attribute(*params)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class Mock
|
||||
|
||||
def self.data
|
||||
|
|
|
@ -16,7 +16,7 @@ module Fog
|
|||
#
|
||||
# {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyImageAttribute.html]
|
||||
#
|
||||
def modify_image_attributes(image_id, attribute, operation_type, options = {})
|
||||
def modify_image_attribute(image_id, attribute, operation_type, options = {})
|
||||
params = {}
|
||||
params.merge!(Fog::AWS.indexed_param('UserId', options['UserId']))
|
||||
params.merge!(Fog::AWS.indexed_param('UserGroup', options['UserGroup']))
|
Loading…
Reference in a new issue