Skip to content

Commit

Permalink
empty param fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kukushking committed Sep 13, 2024
1 parent 8196048 commit 46173d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/integration/fsx-lustre-on-eks/app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

import json
import os
from typing import List, Optional, cast

Expand Down Expand Up @@ -36,7 +37,7 @@ def _param(name: str) -> str:
eks_namespace = os.getenv("EKS_NAMESPACE")

vpc_id = os.getenv(_param("VPC_ID"), None)
private_subnet_ids = os.getenv(_param("PRIVATE_SUBNET_IDS"), None)
private_subnet_ids = json.loads(os.getenv(_param("PRIVATE_SUBNET_IDS"), "[]"))

if not eks_namespace:
raise ValueError("No EKS Namespace defined...error")
Expand Down

0 comments on commit 46173d9

Please sign in to comment.