Skip to content

Commit 78ac523

Browse files
author
Jim Robinson
committed
Explicitly check redis_db is non None
1 parent 09f5892 commit 78ac523

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

croudtech_bootstrap_app/bootstrap.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def find_redis_config(self, parameters, allocate=False):
122122
parameters["REDIS_PORT"] if "REDIS_PORT" in parameters else 6379
123123
)
124124

125-
if redis_host:
125+
if redis_host != None:
126126
redis_config_instance = RedisConfig(
127127
redis_host=redis_host,
128128
redis_port=redis_port,
@@ -324,7 +324,7 @@ def remote_secret_records(self) -> typing.Dict[str, Any]:
324324
def remote_ssm_parameters(self) -> typing.Dict[str, Any]:
325325
if not hasattr(self, "_remote_parameters"):
326326
self._remote_parameters = self.get_remote_ssm_parameters()
327-
327+
328328
return self._remote_parameters
329329

330330
@property
@@ -361,7 +361,7 @@ def get_flattened_parameters(self) -> typing.Dict[str, Any]:
361361

362362
def get_flattened_secrets(self) -> typing.Dict[str, Any]:
363363
return self.convert_flatten(self.local_secrets)
364-
364+
365365
def get_parameter_id(self, parameter):
366366
return f"/{self.get_secret_id(parameter)}"
367367

@@ -622,12 +622,12 @@ def s3_client(self) -> S3Client:
622622
"s3", region_name=self.region, endpoint_url=self.endpoint_url
623623
)
624624
return self._s3_client
625-
625+
626626
@property
627-
def ssm_client(self):
627+
def ssm_client(self):
628628
if not hasattr(self, '_ssm_client'):
629629
self._ssm_client = boto3.client(
630-
"ssm",
630+
"ssm",
631631
region_name=self.region,
632632
endpoint_url=self.endpoint_url
633633
)

0 commit comments

Comments
 (0)