COT.inject_config module¶
Implements “inject-config” command.
-
class
COTInjectConfig(UI)[source]¶ Bases:
COT.submodule.COTSubmoduleWrap configuration file(s) into a disk image embedded into the VM.
Inherited attributes:
UI,package,outputAttributes:
config_file,secondary_config_file-
create_subparser(parent, storage)[source]¶ Add subparser for the CLI of this submodule.
Parameters: - parent (object) – Subparser grouping object returned by
ArgumentParser.add_subparsers() - storage (dict) – Dict of { ‘label’: subparser } to be updated with subparser(s) created, if any.
- parent (object) – Subparser grouping object returned by
-
ready_to_run()[source]¶ Check whether the module is ready to
run().Returns: (True, ready_message)or(False, reason_why_not)
-
run()[source]¶ Do the actual work of this submodule.
Raises InvalidInputError: if ready_to_run()reportsFalse
-
config_file¶ Primary configuration file.
Raises: - InvalidInputError – if the file does not exist
- InvalidInputError – if the platform described by :attr:`package doesn’t support configuration files.
-
secondary_config_file¶ Secondary configuration file.
Raises: - InvalidInputError – if the file does not exist
- InvalidInputError – if the platform described by
packagedoesn’t support secondary configuration files.
-