Skip to content

Commit

Permalink
fix: added support for additional packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
harshilgajera-crest committed Feb 11, 2021
1 parent 2398ec1 commit f9acc98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ By the running the `ucc-gen` command, the following steps are executed:

7. Replace tokens in views.
8. Copy addon's `package/*` to `output/<package_ID>/*` directory.

9. If an addon requires some additional configurations in packaging than implement the steps in additional_packaging.py

## Params

Expand Down
6 changes: 6 additions & 0 deletions splunk_add_on_ucc_framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import glob
from os import system
import shutil
import sys
import argparse
import json
from xml.etree import cElementTree as et
Expand Down Expand Up @@ -754,3 +755,8 @@ def main():
if os.path.exists(license_dir):
logger.info("Copy LICENSES directory ")
recursive_overwrite(license_dir, os.path.join(outputdir, ta_name,"LICENSES"))

if os.path.exists(os.path.abspath(os.path.join(args.source,PARENT_DIR,"additional_packaging.py"))):
sys.path.insert(0,os.path.abspath(os.path.join(args.source,PARENT_DIR)))
from additional_packaging import additional_packaging
additional_packaging(ta_name)

0 comments on commit f9acc98

Please sign in to comment.