Wizard: on-prem aws region in edit
The AWS region was getting reset when going into edit mode for a blueprint. This was because the request wasn't being properly mapped back to the correct state.
This commit is contained in:
parent
3a83a14720
commit
859b7cace8
1 changed files with 3 additions and 1 deletions
|
|
@ -211,8 +211,9 @@ function commonRequestToState(
|
|||
snapshot_date = '';
|
||||
}
|
||||
|
||||
// we need to check for the region for on-prem
|
||||
const awsUploadOptions = aws?.upload_request
|
||||
.options as AwsUploadRequestOptions;
|
||||
.options as AwsUploadRequestOptions & { region?: string | undefined };
|
||||
const gcpUploadOptions = gcp?.upload_request
|
||||
.options as GcpUploadRequestOptions;
|
||||
const azureUploadOptions = azure?.upload_request
|
||||
|
|
@ -315,6 +316,7 @@ function commonRequestToState(
|
|||
: 'manual') as AwsShareMethod,
|
||||
source: { id: awsUploadOptions?.share_with_sources?.[0] },
|
||||
sourceId: awsUploadOptions?.share_with_sources?.[0],
|
||||
region: awsUploadOptions?.region,
|
||||
},
|
||||
snapshotting: {
|
||||
useLatest: !snapshot_date && !request.image_requests[0]?.content_template,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue