COT.edit_properties module

Module for managing VM environment configuration properties.

Classes

COTEditProperties Edit OVF environment XML properties.
class COTEditProperties(ui)[source]

Bases: COT.submodule.COTSubmodule

Edit OVF environment XML properties.

Inherited attributes: ui, package, output

Attributes: config_file, properties, transports, user_configurable

__init__(ui)[source]

Instantiate this submodule with the given UI.

Parameters:ui (UI) – User interface instance.
create_subparser()[source]

Create ‘edit-properties’ CLI subparser.

edit_properties_interactive()[source]

Present an interactive UI for the user to edit properties.

ready_to_run()[source]

Check whether the module is ready to run().

Returns:tuple(True, ready_message) or (False, reason_why_not)
run()[source]

Do the actual work of this submodule.

Raises:InvalidInputError – if ready_to_run() reports False
config_file

Path to plaintext file to read configuration lines from.

Raises:InvalidInputError – if the file does not exist.
descriptions = None

List of description strings to set for updated properties.

labels = None

List of label strings to set for the properties being updated.

properties

List of property (key, value, type) tuples to update.

transports

Transport mechanism(s) for environment properties..

user_configurable = None

Value to set the user_configurable flag on properties we edit.