From: Sage Weil Date: Tue, 4 Dec 2018 23:34:18 +0000 (-0600) Subject: pybind/mgr: rename get_option -> get_ceph_option X-Git-Tag: v14.1.0~641^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3432636b8aba7bd866ce252ce880fd95cbb28c82;p=ceph.git pybind/mgr: rename get_option -> get_ceph_option Signed-off-by: Sage Weil --- diff --git a/doc/mgr/plugins.rst b/doc/mgr/plugins.rst index d1196dea6f7c..c3c2c8c58707 100644 --- a/doc/mgr/plugins.rst +++ b/doc/mgr/plugins.rst @@ -96,38 +96,38 @@ Configuration options --------------------- Modules can load and store configuration options using the -``set_config`` and ``get_config`` methods. +``set_module_option`` and ``get_module_option`` methods. -.. note:: Use ``set_config`` and ``get_config`` to manage user-visible - configuration options that are not blobs (like certificates). If you want to - persist module-internal data or binary configuration data consider using - the `KV store`_. +.. note:: Use ``set_module_option`` and ``get_module_option`` to + manage user-visible configuration options that are not blobs (like + certificates). If you want to persist module-internal data or + binary configuration data consider using the `KV store`_. You must declare your available configuration options in the -``OPTIONS`` class attribute, like this: +``MODULE_OPTIONS`` class attribute, like this: :: - OPTIONS = [ + MODULE_OPTIONS = [ { "name": "my_option" } ] -If you try to use set_config or get_config on options not declared -in ``OPTIONS``, an exception will be raised. +If you try to use set_module_option or get_module_option on options not declared +in ``MODULE_OPTIONS``, an exception will be raised. You may choose to provide setter commands in your module to perform high level validation. Users can also modify configuration using the normal `ceph config set` command, where the configuration options for a mgr module are named like `mgr//