From 51f23a3c7ac3ced0e708b160d1eca24dc3d73930 Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Mon, 31 Oct 2016 22:10:47 +0000 Subject: [PATCH] Make asre generation configurable. --- tools/onlpm.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/onlpm.py b/tools/onlpm.py index f6e98827..27759977 100755 --- a/tools/onlpm.py +++ b/tools/onlpm.py @@ -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)