mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #2213 from dprince/orchestration_fix_update
OpenStack orchestration update_stack fixes.
This commit is contained in:
commit
696ac6a87c
1 changed files with 4 additions and 5 deletions
|
@ -5,23 +5,22 @@ module Fog
|
|||
|
||||
# Update a stack.
|
||||
#
|
||||
# @param [String] stack_id ID of the stack to update.
|
||||
# @param [String] stack_name Name of the stack to update.
|
||||
# @param [Hash] options
|
||||
# * :template_body [String] Structure containing the template body.
|
||||
# * :template [String] Structure containing the template body.
|
||||
# or (one of the two Template parameters is required)
|
||||
# * :template_url [String] URL of file containing the template body.
|
||||
# * :parameters [Hash] Hash of providers to supply to template.
|
||||
#
|
||||
# @see http://docs.amazonwebservices.com/AWSCloudFormation/latest/APIReference/API_UpdateStack.html
|
||||
#
|
||||
def update_stack(stack_name, options = {})
|
||||
def update_stack(stack_id, stack_name, options = {})
|
||||
params = {
|
||||
:stack_name => stack_name
|
||||
}.merge(options)
|
||||
|
||||
request(
|
||||
:expects => 202,
|
||||
:path => 'stacks',
|
||||
:path => "stacks/#{stack_name}/#{stack_id}",
|
||||
:method => 'PUT',
|
||||
:body => MultiJson.encode(params)
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue