mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
page default parameters
This commit is contained in:
parent
57290fc5da
commit
52f3226fab
1 changed files with 11 additions and 2 deletions
|
@ -31,9 +31,18 @@ module Fog
|
|||
end
|
||||
|
||||
def defaults(family)
|
||||
data = service.describe_engine_default_parameters(family).body['DescribeEngineDefaultParametersResult']['Parameters']
|
||||
page1 = service.describe_engine_default_parameters(family).body['DescribeEngineDefaultParametersResult']
|
||||
|
||||
load(data)
|
||||
marker = page1['Marker']
|
||||
parameters = page1['Parameters']
|
||||
|
||||
until marker.nil?
|
||||
body = service.describe_engine_default_parameters(family, 'Marker' => marker).body['DescribeEngineDefaultParametersResult']
|
||||
marker = body['Marker']
|
||||
parameters += body['Parameters']
|
||||
end
|
||||
|
||||
load(parameters)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue