Expected 2 blank lines but only one

Surround top-level function and class definitions
with two blank lines.

PEP 8: expected 2 blank lines, found 1

Change-Id: Ifc7eb671d63b5551e22573fac8a7697bc4838f5a
This commit is contained in:
liuxiaoyang 2017-06-20 10:21:11 +08:00
parent da86670d13
commit 6151c2904a
6 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import os
import logging
import shutil
class Connmon(object):
def __init__(self, config):

View File

@ -30,6 +30,7 @@ except ImportError:
ostag = None
from collections import deque
class Yoda(WorkloadBase.WorkloadBase):
def __init__(self, config):

View File

@ -268,6 +268,7 @@ class BrowbeatGnocchi(scenario.OpenStackScenario):
def _status_get(self, gnocchi_client, detailed=False):
return gnocchi_client.status.get(detailed)
@context.configure(name="browbeat_gnocchi_metric_list", order=350)
class BrowbeatGnocchiMetricList(context.Context):
"""Grabs list of metric ids from Gnocchi for use with getting aggregates/measures."""

View File

@ -26,6 +26,7 @@ from Elastic import Elastic
LOG = logging.getLogger(__name__)
class BrowbeatPlugin(neutron_utils.NeutronScenario,
vm_utils.VMScenario,
scenario.Scenario):

View File

@ -16,6 +16,7 @@ from rally.plugins.openstack.scenarios.nova import utils as nova_utils
from rally.task import types
from rally.task import validation
@types.convert(image={"type": "glance_image"},
flavor={"type": "nova_flavor"})
@validation.image_valid_on_flavor("flavor", "image")

View File

@ -15,6 +15,7 @@ from rally.plugins.openstack.scenarios.neutron import utils as neutron_utils
from rally.task import types
from rally.task import validation
class BrowbeatPlugin(neutron_utils.NeutronScenario,
scenario.Scenario):