Skip to content

Commit

Permalink
Merge pull request #276 from NASA-IMPACT/debug_bucket_option
Browse files Browse the repository at this point in the history
Make debug_bucket argument optional for state machines.
  • Loading branch information
sharkinsspatial authored May 7, 2024
2 parents 1b63b27 + d6a484a commit e090dc0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion stack/hlsconstructs/landsat_mgrs_step_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(
mgrs_logger: Lambda,
get_random_wait: Lambda,
gibs_outputbucket: str,
debug_bucket: Union[bool, str],
debug_bucket: Union[bool, str] = False,
**kwargs,
) -> None:
super().__init__(scope, id, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion stack/hlsconstructs/landsat_step_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(
get_random_wait: Lambda,
replace_existing: bool,
landsat_mgrs_step_function_arn: str,
debug_bucket: Union[bool, str],
debug_bucket: Union[bool, str] = False,
**kwargs,
) -> None:
super().__init__(scope, id, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion stack/hlsconstructs/sentinel_errors_step_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(
update_sentinel_failure: Lambda,
get_random_wait: Lambda,
gibs_outputbucket: str,
debug_bucket: Union[bool, str],
debug_bucket: Union[bool, str] = False,
**kwargs,
) -> None:
super().__init__(scope, id, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion stack/hlsconstructs/sentinel_step_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(
check_exit_code: Lambda,
replace_existing: bool,
gibs_outputbucket: str,
debug_bucket: Union[bool, str],
debug_bucket: Union[bool, str] = False,
**kwargs,
) -> None:
super().__init__(scope, id, **kwargs)
Expand Down
5 changes: 1 addition & 4 deletions stack/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
outputbucket_role_arn=OUTPUT_BUCKET_ROLE_ARN,
gibs_outputbucket=GIBS_OUTPUT_BUCKET,
get_random_wait=self.get_random_wait,
debug_bucket=DEBUG_BUCKET,
)

self.sentinel_errors_step_function_historic = SentinelErrorsStepFunction(
Expand Down Expand Up @@ -638,8 +639,6 @@ def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
pr2mgrs=self.pr2mgrs_lambda,
mgrs_logger=self.mgrs_logger,
get_random_wait=self.get_random_wait,
gibs_outputbucket=GIBS_OUTPUT_BUCKET,
debug_bucket=DEBUG_BUCKET,
)

self.landsat_mgrs_step_function_historic = LandsatMGRSStepFunction(
Expand All @@ -654,7 +653,6 @@ def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
pr2mgrs=self.pr2mgrs_lambda,
mgrs_logger=self.mgrs_logger,
get_random_wait=self.get_random_wait,
gibs_outputbucket=GIBS_OUTPUT_BUCKET_HISTORIC,
)

self.landsat_mgrs_partials_step_function_historic = (
Expand All @@ -670,7 +668,6 @@ def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
pr2mgrs=self.pr2mgrs_lambda,
mgrs_logger=self.mgrs_logger,
get_random_wait=self.get_random_wait,
gibs_outputbucket=GIBS_OUTPUT_BUCKET_HISTORIC,
)
)

Expand Down

0 comments on commit e090dc0

Please sign in to comment.