Skip to content

Commit

Permalink
Merge pull request #43 from aws-solutions/release/v4.0.2
Browse files Browse the repository at this point in the history
Updated to version 4.0.2, see CHANGELOG.md for details.
  • Loading branch information
abewub authored Dec 9, 2024
2 parents be492bd + c65be37 commit 8240665
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ 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).

## [4.0.2] - 2024-12-09
### Fixed
- MGN: Resolved server does not exist error when archiving server that is disconnected.
### Changed
- SSM CMF Document updated runtime to use Python 3.11.
## [4.0.1] - 2024-11-20
### Fixed
- Deployment: Added missing dependency for ToolsAPIDeploy & AdminAPIDeploy resources in main CF template, this was causing some deployments to fail.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ Resources:
maxAttempts: 3
action: 'aws:executeScript'
inputs:
Runtime: python3.8
Runtime: python3.11
Handler: script_handler
InputPayload:
bucket_name: '{{bucketName}}'
Expand Down
2 changes: 1 addition & 1 deletion solution-manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: SO0097 # Solution Id
name: cloud-migration-factory-on-aws # trademarked name
version: v3.3.4 # current version of the solution. Used to verify template headers
version: v4.0.2 # current version of the solution. Used to verify template headers
cloudformation_templates: # This list should match with AWS CloudFormation templates section of IG
- template: aws-cloud-migration-factory-solution.template
main_template: true
Expand Down
2 changes: 1 addition & 1 deletion source/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "migration-factory-frontend",
"description": "List of dependencies for Frontend ",
"version": "4.0.0",
"version": "4.0.2",
"license": "Apache-2.0",
"private": true,
"type": "module",
Expand Down
7 changes: 4 additions & 3 deletions source/integrations/mgn/lambdas/lambda_mgn.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def verify_account_server(account, mgn_sourceservers, processes, errors,
log.error(msg)
return msg, account, source_server_ids
else:
is_server_exist, is_mgn_server_archived, mgn_sourceservers = \
is_server_exist, is_mgn_server_archived = \
verify_server(
mgn_sourceservers, factoryserver,
source_server_ids, target_account_creds,
Expand Down Expand Up @@ -414,6 +414,7 @@ def verify_server(mgn_sourceservers, factoryserver,
factoryserver['source_server_id'] = sourceserver['sourceServerID']
source_server_ids.append(factoryserver['source_server_id'])
if sourceserver['dataReplicationInfo']['dataReplicationState'].lower() != 'disconnected':
# if agent connected then get launch template, if not connected the template is not present.
p = multiprocessing.Process(
target=get_mgn_launch_template_id,
args=(target_account_creds,
Expand All @@ -424,9 +425,9 @@ def verify_server(mgn_sourceservers, factoryserver,
)
processes.append(p)
p.start()
break
break

return is_server_exist, is_mgn_server_archived, mgn_sourceservers
return is_server_exist, is_mgn_server_archived


def validate_server_exist_and_archived(is_server_exist, is_mgn_server_archived,
Expand Down

0 comments on commit 8240665

Please sign in to comment.