return result
-def exports(export_type, recipe, packages, outdir, filename):
+def exports(export_type, recipe, packages, outdir, filename=None):
logger = logging.getLogger(__name__)
#TODO validation should be checked before request
# check whether the ks exists
baseline=recipe['Default'].get('Baseline')
ksname= ''.join([config.get('FileName'), '.ks'])
- if filename:
- ksname= ''.join([config.get('FileName'), '.ks'])
-
kspath=os.path.join(yaml_info.cachedir, baseline, ksname)
if not os.path.exists(kspath):
raise TICError('No ks file was created from kickstarter')
# copy the ks to output directory
- output=copyfile(kspath, outdir)
+ output=copyfile(kspath, outdir, filename)
logger.info('copy the ks file from %s to dst:%s', kspath, output)
return output