def checkUploadOptions(options, parser): if options.marketplaceEndpoint: options.withMarketPlace = True if not options.imageOnly: MarketplaceUtil.checkEndpointOption(options) allowedFormats = list(Compressor.compressionFormats) allowedFormats.append('none') if options.compressionFormat not in allowedFormats: parser.error('Unknown compression format') # Do NOT check the validity of the pdisk options, so that the # values can be taken from non-pdisk options when necessary. # PDiskEndpoint.checkOptions(options) # This essentially just checks that the volume tag is acceptable. PDiskVolume.checkOptions(options)