for testing

This commit is contained in:
amartynov 2015-08-18 19:36:48 +03:00
parent 215714fb1b
commit c55f69bd75

View File

@ -262,9 +262,14 @@ module Provider
pp s
s
=end
l = compute.servers.all({'tag-key' => 'aws:cloudformation:stack-id', 'tag-value' => stack.id})
pp l
l
list = compute.describe_instances({'tag-key' => 'aws:cloudformation:stack-id', 'tag-value' => stack.id}).body["reservationSet"]
pp list
list.map{|l| pp l; convert_server(l["instancesSet"][0])}
=begin
list.select{|l| l["instancesSet"][0]["instanceState"]["name"].to_s != "terminated"}.map do |server|
end
=end
end
def create_default_stack_name s