summaryrefslogtreecommitdiff
path: root/heat
diff options
context:
space:
mode:
authorPeter Razumovsky <prazumovsky@mirantis.com>2015-09-18 11:06:41 +0300
committerPeter Razumovsky <prazumovsky@mirantis.com>2015-09-24 16:22:25 +0300
commit4e0510ffe6a0eac6691e375fa7e45d4047539f04 (patch)
tree24f1e5ac8cdb6be511a8bc997e444fc8c443ef14 /heat
parent8912efaf2316d3b29e608a7506dc90bc5f1bf38b (diff)
downloadheat-4e0510ffe6a0eac6691e375fa7e45d4047539f04.tar.gz
Fix [H405] pep rule in heat/cmd
Implements bp docstring-improvements Change-Id: I6600d0ac4825c97da486b50f9695d0075b3f16ce
Diffstat (limited to 'heat')
-rw-r--r--heat/cmd/api.py5
-rw-r--r--heat/cmd/api_cfn.py9
-rw-r--r--heat/cmd/api_cloudwatch.py9
-rw-r--r--heat/cmd/engine.py9
-rw-r--r--heat/cmd/manage.py18
5 files changed, 24 insertions, 26 deletions
diff --git a/heat/cmd/api.py b/heat/cmd/api.py
index e79fe952b..b5a751814 100644
--- a/heat/cmd/api.py
+++ b/heat/cmd/api.py
@@ -12,8 +12,9 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""
-Heat API Server. An OpenStack ReST API to Heat.
+"""Heat API Server.
+
+An OpenStack ReST API to Heat.
"""
import eventlet
diff --git a/heat/cmd/api_cfn.py b/heat/cmd/api_cfn.py
index ec78df8fe..9594f50bc 100644
--- a/heat/cmd/api_cfn.py
+++ b/heat/cmd/api_cfn.py
@@ -12,10 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""
-Heat API Server. This implements an approximation of the Amazon
-CloudFormation API and translates it into a native representation. It then
-calls the heat-engine via AMQP RPC to implement them.
+"""Heat API Server.
+
+This implements an approximation of the Amazon CloudFormation API and
+translates it into a native representation. It then calls the heat-engine via
+AMQP RPC to implement them.
"""
import eventlet
diff --git a/heat/cmd/api_cloudwatch.py b/heat/cmd/api_cloudwatch.py
index a9d54b081..dd17f5287 100644
--- a/heat/cmd/api_cloudwatch.py
+++ b/heat/cmd/api_cloudwatch.py
@@ -12,10 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""
-Heat API Server. This implements an approximation of the Amazon
-CloudWatch API and translates it into a native representation. It then
-calls the heat-engine via AMQP RPC to implement them.
+"""Heat API Server.
+
+This implements an approximation of the Amazon CloudWatch API and translates it
+into a native representation. It then calls the heat-engine via AMQP RPC to
+implement them.
"""
import eventlet
diff --git a/heat/cmd/engine.py b/heat/cmd/engine.py
index 1574a5a60..f134ffdad 100644
--- a/heat/cmd/engine.py
+++ b/heat/cmd/engine.py
@@ -12,10 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""
-Heat Engine Server. This does the work of actually implementing the API
-calls made by the user. Normal communications is done via the heat API
-which then calls into this engine.
+"""Heat Engine Server.
+
+This does the work of actually implementing the API calls made by the user.
+Normal communications is done via the heat API which then calls into this
+engine.
"""
import eventlet
diff --git a/heat/cmd/manage.py b/heat/cmd/manage.py
index 64a14ad45..891e00635 100644
--- a/heat/cmd/manage.py
+++ b/heat/cmd/manage.py
@@ -13,9 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""
- CLI interface for heat management.
-"""
+"""CLI interface for heat management."""
import sys
@@ -40,9 +38,9 @@ def do_db_version():
def do_db_sync():
- """
- Place a database under migration control and upgrade,
- creating first if necessary.
+ """Place a database under migration control and upgrade.
+
+ Creating first if necessary.
"""
db_api.db_sync(db_api.get_engine(), CONF.command.version)
@@ -91,16 +89,12 @@ class ServiceManageCommand(object):
def purge_deleted():
- """
- Remove database records that have been previously soft deleted
- """
+ """Remove database records that have been previously soft deleted."""
utils.purge_deleted(CONF.command.age, CONF.command.granularity)
def do_crypt_parameters_and_properties():
- """
- Encrypt or decrypt template hidden parameters and resource properties data.
- """
+ """Encrypt/decrypt hidden parameters and resource properties data."""
ctxt = context.get_admin_context()
prev_encryption_key = CONF.command.previous_encryption_key
if CONF.command.crypt_operation == "encrypt":