add ability to view stack servers via console
This commit is contained in:
parent
75ffceaa7d
commit
0066b1cefd
@ -30,7 +30,11 @@ class Stack < Handler
|
||||
output
|
||||
when :resources
|
||||
resources_handler
|
||||
output(resource: @args[3])
|
||||
if @args[3]
|
||||
output(format: 'json', resource: true)
|
||||
else
|
||||
output
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -184,7 +184,7 @@ module Provider
|
||||
end
|
||||
|
||||
def compute
|
||||
connection_compute(self.connection_options)
|
||||
@compute ||= connection_compute(connection_options)
|
||||
end
|
||||
|
||||
def network
|
||||
@ -218,7 +218,8 @@ module Provider
|
||||
end
|
||||
|
||||
def stack_resource(stack, resource_id)
|
||||
fog_stack(stack).resources.get(resource_id)
|
||||
physical_id = fog_stack(stack).resources.get(resource_id).physical_resource_id
|
||||
compute.servers.get(physical_id).attributes
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Loading…
Reference in New Issue
Block a user