common.configuration¶
Module for Configuration class.
- class lmi.scripts.common.configuration.Configuration(user_config_file_path='~/.lmirc', **kwargs)¶
Configuration class specific to software providers. OpenLMI configuration file should reside in:
/etc/openlmi/scripts/lmi.conf
Parameters: user_config_file_path (string) – Path to the user configuration options. - classmethod default_options()¶
Returns: Dictionary of default values. Return type: dictionary
- history_file¶
Path to a file with history of interactive mode.
- history_max_length¶
Maximum number of lines kept in history file.
- human_friendly¶
Whether to print human-friendly values.
- lister_format¶
- Output format used for lister commands. Returns one of
- LISTER_FORMAT_CSV
- LISTER_FORMAT_TABLE
Return type: integer
- load()¶
Read additional user configuration file if it exists.
- log_file¶
Path to a file, where logging messages shall be written.
- no_headings¶
Whether to print headings of tables.
- silent¶
Whether to suppress all output messages except for errors.
- trace¶
Whether the tracebacks shall be printed upon errors.
- verbose¶
Whether to output more details.
- verbosity¶
Return integer indicating verbosity level of output to console.
- verify_server_cert¶
Return boolean saying, whether the server-side certificate should be checked.
- lmi.scripts.common.configuration.DEFAULT_FORMAT_STRING = '%(cseq)s%(levelname_)-8s:%(creset)s %(message)s'¶
Default format string to use in stderr handlers.