22
def query_ami(series, arch, region=None, stream='released', **kwargs):
21
def query_ami(series, arch, region=None, **kwargs):
23
22
"""Lookup newest ami for given series and arch, plus optional params."""
30
25
sstream_params = ["arch=" + arch, "release=" + series]
31
26
for k in sorted(DEFAULT_PARAMS):
32
27
v = kwargs.pop(k, DEFAULT_PARAMS[k])