def autopkg_run(recipe, report_plist_path):
  cmd = ['/usr/local/bin/autopkg', 'run', '-vvvv']
  cmd.append(recipe)
  # Add MakeCatalogs.munki so that we don't keep importing copies
  # if AutoPkg runs again before someone makes catalogs
  cmd.append('MakeCatalogs.munki')
  cmd.append('--report-plist')
  cmd.append(report_plist_path)
  print "Running AutoPkg with the following recipes: %s" % recipe
  # print "Cmd: %s" % cmd
  print run_cmd(cmd)
Runs an autopkg recipe and creates a report_plist
dataset/ETHPy150Open facebook/IT-CPE/autopkg_runner/autopkg_runner.py/autopkg_run