* Finishes creating a bucket in transient state * by putting an object in users bucket representing the created bucket * and removing transient attribute of the created bucket * @param {object} bucketMD - either the bucket metadata sent in the new request * or the existing metadata if no new met
(bucketMD, canonicalID, log, callback)
| 119 | * @return {undefined} |
| 120 | */ |
| 121 | function cleanUpBucket(bucketMD, canonicalID, log, callback) { |
| 122 | const bucketName = bucketMD.getName(); |
| 123 | return addToUsersBucket(canonicalID, bucketName, bucketMD, log, err => { |
| 124 | if (err) { |
| 125 | return callback(err); |
| 126 | } |
| 127 | return removeTransientOrDeletedLabel(bucketMD, log, callback); |
| 128 | }); |
| 129 | } |
| 130 | |
| 131 | /** |
| 132 | * Manage the server side encryption on bucket creation, as a side effect |
no test coverage detected