Remove all sphinx warnings

This patch set fixes all sphinx warnings and makes
https://docs.openstack.org/watcher/latest/configuration/index.html
available.

Change-Id: I76a715c10cb1d582419ff37869093fa9b8678310
This commit is contained in:
Alexander Chadin
2017-07-24 16:36:41 +03:00
parent ba907f4905
commit 8fd57276be
24 changed files with 71 additions and 53 deletions

View File

@@ -19,7 +19,6 @@ import collections
import networkx as nx
from oslo_config import cfg
from oslo_config import types
from oslo_log import log
from watcher.common import utils
@@ -69,17 +68,15 @@ class WeightPlanner(base.BasePlanner):
@classmethod
def get_config_opts(cls):
return [
cfg.Opt(
cfg.DictOpt(
'weights',
type=types.Dict(value_type=types.Integer()),
help="These weights are used to schedule the actions. "
"Action Plan will be build in accordance with sets of "
"actions ordered by descending weights."
"Two action types cannot have the same weight. ",
default=cls.action_weights),
cfg.Opt(
cfg.DictOpt(
'parallelization',
type=types.Dict(value_type=types.Integer()),
help="Number of actions to be run in parallel on a per "
"action type basis.",
default=cls.parallelization),

View File

@@ -17,7 +17,6 @@
import abc
from oslo_config import cfg
from oslo_config import types
from oslo_log import log
from watcher.common import clients
@@ -65,9 +64,8 @@ class WorkloadStabilizationPlanner(base.BasePlanner):
@classmethod
def get_config_opts(cls):
return [
cfg.Opt(
cfg.DictOpt(
'weights',
type=types.Dict(value_type=types.Integer()),
help="These weights are used to schedule the actions",
default=cls.weights_dict),
]