10 from pyAMI.pyAMI
import AMI
11 amires = AMI().execute([
"ListConfigurationTag",
"-configTag=%s" % tag])
12 d = amires.getDict()[
'rowset_%s'%tag][tag]
13 outDict = eval(d.get(
'outputs',
'None'))
14 except Exception
as e:
15 print (
"Failed to get OutputDict from AMI")
21if __name__==
'__main__':
24 print (sys.argv[0],
"<ami-tag> <input dataset name>")
29 print (
"Getting output for",dsname,
"with AMI configuration tag",tag )
37 for name,outDef
in outDict.items():
38 if 'ifMatch' in outDef:
39 if re.match(outDef[
'ifMatch'],dsname):
getOutputDictFromAMI(tag)