Fix [H405] pep rule in heat/cmd

Implements bp docstring-improvements

Change-Id: I6600d0ac4825c97da486b50f9695d0075b3f16ce
This commit is contained in:
Peter Razumovsky 2015-09-18 11:06:41 +03:00
parent 8912efaf23
commit 4e0510ffe6
5 changed files with 24 additions and 26 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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":