Allow relative paths for signature in load-import

Change-Id: I25926297792718373f7be61490db45b588a73c4c
Story: 2002886
Task: 22847
Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
David Sullivan 2018-05-08 15:56:02 -04:00 committed by Jack Ding
parent 067e0e03a9
commit 14cd49f916
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,9 @@ def do_load_import(cc, args):
if not os.path.isabs(args.isopath):
args.isopath = os.path.abspath(args.isopath)
if not os.path.isabs(args.sigpath):
args.sigpath = os.path.abspath(args.sigpath)
# Here we pass the path_to_iso to the API
# The API will perform any required actions to import the provided iso
patch = {'path_to_iso': args.isopath, 'path_to_sig': args.sigpath}