Skip to content

Commit b572f2b

Browse files
committed
DEVSU-2797 - check os.environ for IPR_URL and GRAPHKB_URL
1 parent ecb9060 commit b572f2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pori_python/ipr/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ def ipr_report(
358358
)
359359

360360
# IPR CONNECTION
361+
ipr_url = ipr_url if ipr_url else os.environ.get("IPR_URL", "")
361362
ipr_conn = None
362363
if ipr_url:
363364
ipr_conn = IprConnection(username, password, ipr_url)
@@ -420,6 +421,7 @@ def ipr_report(
420421
# GKB CONNECTION
421422
gkb_user = graphkb_username if graphkb_username else username
422423
gkb_pass = graphkb_password if graphkb_password else password
424+
graphkb_url = graphkb_url if graphkb_url else os.environ.get("GRAPHKB_URL", "")
423425
if graphkb_url:
424426
logger.info(f"connecting to graphkb: {graphkb_url}")
425427
graphkb_conn = GraphKBConnection(graphkb_url)

0 commit comments

Comments
 (0)