From 70c32ef7c53dd7ad10f2ea5953ee3aac65a2ea56 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Tue, 18 Aug 2020 14:30:42 -0500 Subject: [PATCH] awsupload: Add comments for Register() Please the golang linter by adding a small comment for the Register function. Signed-off-by: Major Hayden --- internal/upload/awsupload/awsupload.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/upload/awsupload/awsupload.go b/internal/upload/awsupload/awsupload.go index d0de5e78b..086d65687 100644 --- a/internal/upload/awsupload/awsupload.go +++ b/internal/upload/awsupload/awsupload.go @@ -114,6 +114,9 @@ func WaitUntilImportSnapshotTaskCompletedWithContext(c *ec2.EC2, ctx aws.Context return w.WaitWithContext(ctx) } +// Register is a function that imports a snapshot, waits for the snapshot to +// fully import, tags the snapshot, cleans up the image in S3, and registers +// an AMI in AWS. func (a *AWS) Register(name, bucket, key string) (*string, error) { log.Printf("[AWS] 📥 Importing snapshot from image: %s/%s", bucket, key) snapshotDescription := fmt.Sprintf("Image Builder AWS Import of %s", name)