awsupload: Add comments for Register()
Please the golang linter by adding a small comment for the Register function. Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
02306c978e
commit
70c32ef7c5
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue