Skip to content

Commit

Permalink
Merge pull request #330 from epam/release/1.11.0
Browse files Browse the repository at this point in the history
1.11.2
  • Loading branch information
oleksandr-onsha authored Mar 28, 2024
2 parents 9f01727 + 1a087d1 commit 124dd32
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [1.11.2] - 2024-03-28
- fix issue with syndicate not uploading deploy output on fail

# [1.11.1] - 2024-03-26
- Added clarification error message in case of deployment after failed deploy
- Fixed generation of tests when generating meta for a new lambda function
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

setup(
name='aws-syndicate',
version='1.11.1',
version='1.11.2',
packages=find_packages(),
include_package_data=True,
install_requires=[
Expand Down
21 changes: 13 additions & 8 deletions syndicate/core/build/deployment_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,19 @@ def _build_args(name, meta, context, pass_context=False):

def update_failed_output(res_name, res_meta, resource_type, output):
from syndicate.core import PROCESSOR_FACADE
describe_func = PROCESSOR_FACADE.describe_handlers()[resource_type]
failed_resource_output = describe_func(res_name, res_meta)
if failed_resource_output:
if isinstance(failed_resource_output, list):
for item in failed_resource_output:
output.update(item)
else:
output.update(failed_resource_output)

try:
describe_func = PROCESSOR_FACADE.describe_handlers()[resource_type]
failed_resource_output = describe_func(res_name, res_meta)
if failed_resource_output:
if isinstance(failed_resource_output, list):
for item in failed_resource_output:
output.update(item)
else:
output.update(failed_resource_output)
except Exception as e:
_LOG.warning(f'Unable to describe {resource_type} '
f'resource with name {res_name}. Exception: {e}')
return output


Expand Down

0 comments on commit 124dd32

Please sign in to comment.