settings Package

settings Package

config Module

Configuration management for vAPI providers

vmware.vapi.settings.config.get_value(section_name, option_name, default_value)[source]

Get the configuration value for the given section and option.

Parameters:
  • section_name (str) – Name of the section in the configuration file.
  • option_name (str) – Name of the option in the configuration file.
  • default_value (object) – Default value to be returned if section or option is not present in the configuration.
Return type:

str or list of str or object

Returns:

String or list of strings based on whether the value is comma separated or not. If the section or option is not present, the operation will return the default value provided

sections Module

Section names used in vAPI properties file

Table Of Contents

Previous topic

security Package

Next topic

stdlib Package

This Page