Permalink
Browse files

OS-4541: imgadm: clarify that the 'size' field from <source>.getImgMe…

…ta is optional
  • Loading branch information...
trentm committed Jul 23, 2015
1 parent d97b809 commit 514a1dbe3038eaf40f8d6eb667030ac2cfd85e4f
Showing with 2 additions and 4 deletions.
  1. +1 −1 src/img/lib/imgadm.js
  2. +0 −2 src/img/lib/magic.js
  3. +1 −1 src/img/lib/sources/source.js
View
@@ -1721,7 +1721,7 @@ IMGADM.prototype._importImage = function _importImage(opts, cb) {
worker: function getManifestIfNotInstalled(irec, nextManifest) {
if (cosmicRay) {
nextManifest(new errors.InternalError({
message: 'getMeta cosmic raw'
message: 'getMeta cosmic ray'
}));
return;
}
View
@@ -26,11 +26,9 @@
* Magic number sniffing of compression type of files.
*/
var p = console.log;
var assert = require('assert-plus');
var format = require('util').format;
var fs = require('fs');
var vasync = require('vasync');
@@ -173,9 +173,9 @@ Source.prototype.getImgAncestry = function getImgAncestry(opts, cb) {
* imgMeta = {
* // Required:
* "manifest": {...},
* "size": <size-of-the-file-in-bytes>,
*
* // Optional:
* "size": <size-of-the-file-in-bytes>,
* "checksum": "<file checksum in the format TYPE:HEXDIGEST,
* e.g. 'sha256:23498af90e8g9...'>",
*

0 comments on commit 514a1db

Please sign in to comment.