2.2. config
— Autotest RPC Client Configuration¶
The config
module provides the means for users of both the Arc API and the arcli command line application to have defaults that suit their need.
Configuration file parser
This class provides a parser for the client side configuration file, both the system wide client configuration, and the local user configuration file.
The local user configuration file overrides values that may be set in the system wide configuration file.
-
arc.config.
get_default
(klass=<class arc.config.UserLocalConfigParser>)¶ Returns the default configuration
Parameters: klass – a Configurtion class to be instantiated one time only. Defaults to UserLocalConfigParser
-
class
arc.config.
SystemWideConfigParser
¶ This is a parser for the system wide configuration for the autotest rpc client library.
-
class
arc.config.
UserLocalConfigParser
¶ This is a parser for the configuration file that is specific to the current user and lives on his home directory.
If the system wide configuration exists, it is also read, though the values in the user specific configuration file overrides the previous one.
-
get_server_host
()¶ Returns the server host, defaulting to what is in
arc.defaults
-
get_server_port
()¶ Returns the server port, defaulting to what is in
arc.defaults
-
-
arc.config.
Config
¶ alias of
UserLocalConfigParser