Skip to content

Commit fea61be

Browse files
author
Dan Xie
committed
fix the allow_empty_target OU path issue
1 parent 51f6936 commit fea61be

File tree

1 file changed

+2
-5
lines changed
  • src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python

1 file changed

+2
-5
lines changed

src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/target.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,8 @@ def _target_is_ou_path(self, resolve_children=False):
263263
ou_id=None,
264264
excluded_paths=[],
265265
)
266-
except ClientError as client_err:
267-
no_target_found = (
268-
client_err.response["Error"]["Code"] == "ParentNotFoundException"
269-
)
270-
if no_target_found and self.adf_deployment_maps_allow_empty_target:
266+
except Exception:
267+
if self.adf_deployment_maps_allow_empty_target:
271268
LOGGER.info(
272269
"Note: Target OU was not found in AWS Org for path %s",
273270
self.path,

0 commit comments

Comments
 (0)