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

create_subparser()[source]

Create ‘edit-properties’ CLI subparser.

edit_properties_interactive()[source]

Present an interactive UI for the user to edit properties.

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.

Raise:InvalidInputError if the file does not exist.
properties

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

transports

Transport mechanism(s) for environment properties..