Make asre generation configurable.

This commit is contained in:
Jeffrey Townsend
2016-10-31 22:10:47 +00:00
parent b87ec658e0
commit 51f23a3c7a

View File

@@ -427,12 +427,13 @@ class OnlPackage(object):
# Generate the ASRE documentation for this package.
subprocess.check_call(['%s/sm/infra/tools/asre.py' % os.getenv('ONL'),
workdir,
'--overwrite',
'--out',
os.path.join(docpath, 'asre.json')
])
if self.pkg.get('asre', True):
subprocess.check_call(['%s/sm/infra/tools/asre.py' % os.getenv('ONL'),
workdir,
'--overwrite',
'--out',
os.path.join(docpath, 'asre.json')
])
onlu.execute(command)