Skip to content

Commit

Permalink
api/aws: remove details during the import task status
Browse files Browse the repository at this point in the history
The details (progress and status message) are not provided by AWS at the beginning of the import. Here's the
details:
```json
{
  DiskImageSize: 0,
  Format: "RAW",
  SnapshotId: "",
  Status: "active",
  UserBucket: {
    S3Bucket: "flatcar-kola-ami-import-us-east-1",
    S3Key: "tormath1/amd64-usr/tormath1-flatcar-stable/flatcar_production_ami_image.bin"
  }
}
```

Let's just drop it as we don't use it, this does not impact the
execution of the program. If required, we can still access to the task
via its ID using the AWS CLI.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
  • Loading branch information
tormath1 committed Nov 29, 2024
1 parent db2a9b1 commit beec48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/api/aws/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func (a *API) finishSnapshotTask(snapshotTaskID, imageName string) (*Snapshot, e
case "completed":
return true, *details.SnapshotId, nil
case "pending", "active":
plog.Debugf("waiting for import task: %v (%v): %v", *details.Status, *details.Progress, *details.StatusMessage)
plog.Debugf("waiting for import task")
return false, "", nil
case "cancelled", "cancelling":
return false, "", fmt.Errorf("import task cancelled")
Expand Down

0 comments on commit beec48d

Please sign in to comment.