StorageConfiguration

” Module for StorageConfiguration class.

StorageConfiguration

class openlmi.storage.StorageConfiguration.StorageConfiguration(*args, **kwargs)[source]

OpenLMI configuration file. By default, it resides in /etc/openlmi/storage/storage.conf.

There should be only one instance of this class.

__init__(*args, **kwargs)[source]

Initialize and load a configuration file.

add_listener(*args, **kwargs)[source]

Add a callback, which will be called when configuration is updated. The callback will be called with StorageConfiguration as parameter:

callback(config)
blivet_tracing[source]

Return True if blivet tracing is enabled.

load(*args, **kwargs)[source]

Load configuration from CONFIG_FILE. The file does not need to exist.

namespace[source]

Return namespace of OpenLMI storage provider.

remove_listener(*args, **kwargs)[source]

Remove previously registered callback.

stderr[source]

Return True if logging to stderr is enabled.

system_class_name[source]

Return SystemClassName of OpenLMI storage provider.

system_name[source]

Return SystemName of OpenLMI storage provider.

tracing[source]

Return True if tracing is enabled.

Table Of Contents

Previous topic

SettingProvider

This Page