From 456ce5a9e06cf7da72adfb6fe29c4b7dc4a94094 Mon Sep 17 00:00:00 2001 From: Tatiana Kholkina Date: Tue, 6 Nov 2018 16:38:11 +0300 Subject: [PATCH] Remove redundant docstring The method is quite simple and it doesn't need a dostring. Also existing docstring was incorrect. The name of the expected parameter is 'name', not 'node'. And it cannot be an object of the type node.StorageNode Change-Id: I94124d327c490d45eae4d2ded218beadfbc33ad7 --- watcher/decision_engine/model/model_root.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/watcher/decision_engine/model/model_root.py b/watcher/decision_engine/model/model_root.py index 012f2c586..ad85bdd9c 100644 --- a/watcher/decision_engine/model/model_root.py +++ b/watcher/decision_engine/model/model_root.py @@ -391,10 +391,6 @@ class StorageModelRoot(nx.DiGraph, base.Model): @lockutils.synchronized("storage_model") def get_node_by_name(self, name): - """Get a node by node name - - :param node: :py:class:`~.node.StorageNode` object or node name - """ try: return self._get_by_name(name.split("#")[0]) except exception.StorageResourceNotFound: