diff --git a/examples/idempotency/src/using_redis_client_with_aws_secrets.py b/examples/idempotency/src/using_redis_client_with_aws_secrets.py index ddf2659e815..ee9e6d78c45 100644 --- a/examples/idempotency/src/using_redis_client_with_aws_secrets.py +++ b/examples/idempotency/src/using_redis_client_with_aws_secrets.py @@ -13,8 +13,8 @@ redis_values: dict[str, Any] = parameters.get_secret("redis_info", transform="json") # (1)! redis_client = Redis( - host=redis_values.get("REDIS_HOST"), - port=redis_values.get("REDIS_PORT"), + host=redis_values.get("REDIS_HOST", "localhost"), + port=redis_values.get("REDIS_PORT", 6379), password=redis_values.get("REDIS_PASSWORD"), decode_responses=True, socket_timeout=10.0, diff --git a/examples/idempotency/src/using_redis_client_with_local_certs.py b/examples/idempotency/src/using_redis_client_with_local_certs.py index 946fd6a064d..2b6a5892c5b 100644 --- a/examples/idempotency/src/using_redis_client_with_local_certs.py +++ b/examples/idempotency/src/using_redis_client_with_local_certs.py @@ -15,8 +15,8 @@ redis_client = Redis( - host=redis_values.get("REDIS_HOST"), - port=redis_values.get("REDIS_PORT"), + host=redis_values.get("REDIS_HOST", "localhost"), + port=redis_values.get("REDIS_PORT", 6379), password=redis_values.get("REDIS_PASSWORD"), decode_responses=True, socket_timeout=10.0,