1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|elasticache] show cluster node details by default in model

This commit is contained in:
Benton Roberts 2011-09-19 09:02:40 -04:00 committed by geemus
parent e249d28e0b
commit 6f3f9d29bf
2 changed files with 6 additions and 4 deletions

View file

@ -10,11 +10,13 @@ module Fog
def all
load(
connection.describe_cache_clusters.body['CacheClusters']
connection.describe_cache_clusters(
nil, :show_node_info => true
).body['CacheClusters']
)
end
def get(identity, show_node_info = false)
def get(identity, show_node_info = true)
new(
connection.describe_cache_clusters(
identity, :show_node_info => show_node_info

View file

@ -45,8 +45,8 @@ module Fog
when 'CacheNode'
@cache_cluster["#{name}s"] << @cache_node unless @cache_node.empty?
when 'CacheNodeCreateTime', 'CacheNodeId', 'CacheNodeStatus',
'Endpoint', 'ParameterGroupStatus'
@cache_node[name] = value.strip
'Address', 'ParameterGroupStatus', 'Port'
@cache_node[name] = value ? value.strip : name
when 'CacheNodeIdsToReboots', 'CacheParameterGroupName', 'ParameterApplyStatus'
@cache_cluster['CacheParameterGroup'][name] = value
else