COT.edit_product module

Module for editing product information in a VM description.


COTEditProduct Edit product information (short version, long version).
class COTEditProduct(UI)[source]

Bases: COT.submodule.COTSubmodule

Edit product information (short version, long version).

Inherited attributes: UI, package, output

Attributes: version, full_version


Add subparser for the CLI of this submodule.

Parameters:parent (object) – Subparser grouping object returned by ArgumentParser.add_subparsers()
Returns:('edit-product', subparser)

Check whether the module is ready to run().

Returns:(True, ready_message) or (False, reason_why_not)

Do the actual work of this submodule.

Raises InvalidInputError:
 if ready_to_run() reports False
full_version = None

Long version string.

version = None

Short version string.