Skip to content

Commit f3b797a

Browse files
committed
Fixed parsing of optional skupper router image env var (#63)
1 parent b34b901 commit f3b797a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/module_utils/system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ def env(platform: str, engine: str = "podman") -> dict:
6262
container_env = {
6363
"SKUPPER_OUTPUT_PATH": data_home(),
6464
"SKUPPER_PLATFORM": platform,
65-
"SKUPPER_ROUTER_IMAGE": os.environ.get("SKUPPER_ROUTER_IMAGE"),
6665
}
66+
if os.environ.get("SKUPPER_ROUTER_IMAGE"):
67+
container_env["SKUPPER_ROUTER_IMAGE"] = os.environ.get("SKUPPER_ROUTER_IMAGE")
6768
endpoint = container_endpoint(engine)
6869
if platform != "linux":
6970
if is_sock_endpoint(endpoint):

0 commit comments

Comments
 (0)