summaryrefslogtreecommitdiff
path: root/plugins/xenserver/xenapi
diff options
context:
space:
mode:
authorAlexander Bochkarev <abochkarev@mirantis.com>2014-02-24 10:41:36 +0400
committerAlexander Bochkarev <abochkarev@mirantis.com>2014-02-27 11:15:55 +0400
commitdd4032e9fbe4df90c9e51a4e003da472e7b6dad9 (patch)
treeae5b81e36d45a2a7586b01edb0d8af84df3b4bea /plugins/xenserver/xenapi
parentb91b9bd0c8511e3fcce0128e4bfaa73f451c07c3 (diff)
downloadnova-dd4032e9fbe4df90c9e51a4e003da472e7b6dad9.tar.gz
Enable flake8 H404 checking
This check indicates on comments in which multi line docstring should start without a leading new line. This change fixed all violators of said check. Change-Id: Ic7357b8c7420767dba611f6fcee07b7700f3aea8
Diffstat (limited to 'plugins/xenserver/xenapi')
-rw-r--r--plugins/xenserver/xenapi/etc/xapi.d/plugins/utils.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/utils.py b/plugins/xenserver/xenapi/etc/xapi.d/plugins/utils.py
index 0d1f4a2fd9..55b6dece99 100644
--- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/utils.py
+++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/utils.py
@@ -118,8 +118,7 @@ def run_command(cmd, cmd_input=None, ok_exit_codes=None):
def make_staging_area(sr_path):
- """
- The staging area is a place where we can temporarily store and
+ """The staging area is a place where we can temporarily store and
manipulate VHDs. The use of the staging area is different for upload and
download:
@@ -205,8 +204,7 @@ def _assert_vhd_not_hidden(path):
def _validate_vhd(vdi_path):
- """
- This checks for several errors in the VHD structure.
+ """This checks for several errors in the VHD structure.
Most notably, it checks that the timestamp in the footer is correct, but
may pick up other errors also.
@@ -248,8 +246,7 @@ def _validate_vhd(vdi_path):
def _validate_vdi_chain(vdi_path):
- """
- This check ensures that the parent pointers on the VHDs are valid
+ """This check ensures that the parent pointers on the VHDs are valid
before we move the VDI chain to the SR. This is *very* important
because a bad parent pointer will corrupt the SR causing a cascade of
failures.