common.configuration
Module for Configuration class.
Configuration
-
class lmi.scripts.common.configuration.Configuration(user_config_file_path='~/.lmirc', **kwargs)[source]
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()[source]
Returns: | Dictionary of default values. |
Return type: | dictionary |
-
human_friendly[source]
Whether to print human-friendly values.
-
lister_format[source]
- Output format used for lister commands. Returns one of
- LISTER_FORMAT_CSV
- LISTER_FORMAT_TABLE
-
load()[source]
Read additional user configuration file if it exists.
-
log_file[source]
Path to a file, where logging messages shall be written.
-
no_headings[source]
Whether to print headings of tables.
-
silent[source]
Whether to suppress all output messages except for errors.
-
trace[source]
Whether the tracebacks shall be printed upon errors.
-
verbose[source]
Whether to output more details.
-
verbosity[source]
Return integer indicating verbosity level of output to console.
-
verify_server_cert[source]
Return boolean saying, whether the server-side certificate should be
checked.
-
class lmi.scripts.common.configuration.Configuration(user_config_file_path='~/.lmirc', **kwargs)[source]
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()[source]
Returns: | Dictionary of default values. |
Return type: | dictionary |
-
human_friendly[source]
Whether to print human-friendly values.
-
lister_format[source]
- Output format used for lister commands. Returns one of
- LISTER_FORMAT_CSV
- LISTER_FORMAT_TABLE
-
load()[source]
Read additional user configuration file if it exists.
-
log_file[source]
Path to a file, where logging messages shall be written.
-
no_headings[source]
Whether to print headings of tables.
-
silent[source]
Whether to suppress all output messages except for errors.
-
trace[source]
Whether the tracebacks shall be printed upon errors.
-
verbose[source]
Whether to output more details.
-
verbosity[source]
Return integer indicating verbosity level of output to console.
-
verify_server_cert[source]
Return boolean saying, whether the server-side certificate should be
checked.