Dan Kenigsberg has uploaded a new change for review.

Change subject: pep8: fix E124
......................................................................

pep8: fix E124

Change-Id: I8f9cf34866a258b1b3c3e6941ea743b8fad08289
Signed-off-by: Dan Kenigsberg <[email protected]>
---
M Makefile.am
M tests/configNetworkTests.py
M vdsm/define.py
M vdsm/doc/source/conf.py
M vdsm/netinfo.py
M vdsm/storage/storage_mailbox.py
M vdsm_cli/vdsClient.py
7 files changed, 102 insertions(+), 102 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/04/9804/1

diff --git a/Makefile.am b/Makefile.am
index 434aa41..0da5d07 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -104,7 +104,7 @@
        find . -path './.git' -prune -type f -o \
                -name '*.py' -o -name '*.py.in'  | xargs $(PYFLAKES)
        $(PEP8) --exclude="$(PEP8_BLACKLIST)" --filename '*.py,*.py.in' \
-               --ignore=E124,E125,E126,E127,E128,E241 \
+               --ignore=E125,E126,E127,E128,E241 \
                $(PEP8_WHITELIST)
        @if test -f .gitignore; then \
          for i in `git ls-files \*.in`; do \
diff --git a/tests/configNetworkTests.py b/tests/configNetworkTests.py
index 0813ebc..5f7cce4 100644
--- a/tests/configNetworkTests.py
+++ b/tests/configNetworkTests.py
@@ -177,7 +177,7 @@
     def _fakeNetworks():
         return {'fakebridgenet': {'iface': 'fakebridge', 'bridged': True},
                 'fakenet': {'iface': 'fakeint', 'bridged': False},
-               }
+                }
 
     def _addNetworkWithExc(self, parameters, errCode):
         with self.assertRaises(configNetwork.ConfigNetworkError) as cneContext:
@@ -319,7 +319,7 @@
                         ('ifcfg-eth1', None, True),
                         ('ifcfg-eth2', None, False),
                         ('ifcfg-eth3', self.INITIAL_CONTENT, False),
-                       ))
+                        ))
 
     def __del__(self):
         shutil.rmtree(self._tempdir)
diff --git a/vdsm/define.py b/vdsm/define.py
index 11a6ef6..61bcc64 100644
--- a/vdsm/define.py
+++ b/vdsm/define.py
@@ -128,7 +128,7 @@
                              {'code': 99,
                               'message':
                               'Recovering from crash or Initializing'}},
-            }
+           }
 doneCode = {'code': 0, 'message': 'Done'}
 
 Kbytes = 1024
diff --git a/vdsm/doc/source/conf.py b/vdsm/doc/source/conf.py
index 4024217..4144135 100644
--- a/vdsm/doc/source/conf.py
+++ b/vdsm/doc/source/conf.py
@@ -173,7 +173,7 @@
 # (source start file, target name, title, author, documentclass 
[howto/manual]).
 latex_documents = [('index', 'Vdsm.tex', u'VDSM Documentation',
                     u'Red Hat', 'manual'),
-]
+                   ]
 
 # The name of an image file (relative to this directory) to place at the top of
 # the title page.
diff --git a/vdsm/netinfo.py b/vdsm/netinfo.py
index 9d8abf9..2b088b9 100644
--- a/vdsm/netinfo.py
+++ b/vdsm/netinfo.py
@@ -340,16 +340,16 @@
                                    'netmask': getnetmask(bridge),
                                    'mtu': getMtu(bridge),
                                    'cfg': getIfaceCfg(bridge),
-                                  })
+                                   })
                          for bridge in bridges()])
 
     d['nics'] = dict([(nic, {'speed': speed(nic),
-                              'addr': getaddr(nic),
-                              'netmask': getnetmask(nic),
-                              'hwaddr': gethwaddr(nic),
-                              'mtu': getMtu(nic),
-                              'cfg': getIfaceCfg(nic),
-                              })
+                             'addr': getaddr(nic),
+                             'netmask': getnetmask(nic),
+                             'hwaddr': gethwaddr(nic),
+                             'mtu': getMtu(nic),
+                             'cfg': getIfaceCfg(nic),
+                             })
                         for nic in nics()])
     paddr = permAddr()
     for nic, nd in d['nics'].iteritems():
@@ -363,11 +363,11 @@
                               'mtu': getMtu(bond)})
                         for bond in bondings()])
     d['vlans'] = dict([(vlan, {'iface': vlan.split('.')[0],
-                                'addr': getaddr(vlan),
-                                'netmask': getnetmask(vlan),
-                                'mtu': getMtu(vlan),
-                                'cfg': getIfaceCfg(vlan),
-                                })
+                               'addr': getaddr(vlan),
+                               'netmask': getnetmask(vlan),
+                               'mtu': getMtu(vlan),
+                               'cfg': getIfaceCfg(vlan),
+                               })
                         for vlan in vlans()])
     return d
 
diff --git a/vdsm/storage/storage_mailbox.py b/vdsm/storage/storage_mailbox.py
index 434977c..3a3a213 100644
--- a/vdsm/storage/storage_mailbox.py
+++ b/vdsm/storage/storage_mailbox.py
@@ -217,12 +217,12 @@
         # TODO: add support for multiple paths (multiple mailboxes)
         self._spmStorageDir = config.get('irs', 'repository')
         self._inCmd = [constants.EXT_DD,
-                        'if=' + str(inbox),
-                        'iflag=direct,fullblock',
-                        'bs=' + str(BLOCK_SIZE),
-                        'count=' + str(BLOCKS_PER_MAILBOX),
-                        'skip=' + str(self._hostID * BLOCKS_PER_MAILBOX)
-                        ]
+                       'if=' + str(inbox),
+                       'iflag=direct,fullblock',
+                       'bs=' + str(BLOCK_SIZE),
+                       'count=' + str(BLOCKS_PER_MAILBOX),
+                       'skip=' + str(self._hostID * BLOCKS_PER_MAILBOX)
+                       ]
         self._outCmd = [constants.EXT_DD,
                         'of=' + str(outbox),
                         'iflag=fullblock',
@@ -476,10 +476,10 @@
         self._outgoingMail = self._outMailLen * "\0"
         self._incomingMail = self._outgoingMail
         self._inCmd = ['dd',
-                        'if=' + str(self._inbox),
-                        'iflag=direct,fullblock',
-                        'count=1'
-                        ]
+                       'if=' + str(self._inbox),
+                       'iflag=direct,fullblock',
+                       'count=1'
+                       ]
         self._outCmd = ['dd',
                         'of=' + str(self._outbox),
                         'oflag=direct',
diff --git a/vdsm_cli/vdsClient.py b/vdsm_cli/vdsClient.py
index 2260300..080da7e 100644
--- a/vdsm_cli/vdsClient.py
+++ b/vdsm_cli/vdsClient.py
@@ -1819,25 +1819,25 @@
                           'all bootable devices',
                           'o   shared: True|False',
                           'o   optional: True|False'
-                         )),
+                          )),
         'changeCD':  (serv.do_changeCD,
                        ('<vmId> <fileName|drivespec>',
                         'Changes the iso image of the cdrom'
-                       )),
+                        )),
         'changeFloppy':  (serv.do_changeFloppy,
                        ('<vmId> <fileName|drivespec>',
                         'Changes the image of the floppy drive'
-                       )),
+                        )),
         'destroy':  (serv.do_destroy,
                        ('<vmId>',
                         'Stops the emulation and destroys the virtual machine.'
                         ' This is not a shutdown.'
-                       )),
+                        )),
         'shutdown':  (serv.do_shutdown,
                        ('<vmId> <timeout> <message>',
                         'Stops the emulation and graceful shutdown the virtual'
                         ' machine.'
-                       )),
+                        )),
         'list':  (serv.do_list,
                        ('[view] [vms:vmId1,vmId2]',
                         'Lists all available machines on the specified '
@@ -1850,20 +1850,20 @@
                         '    "table"  table output with the fields: vmId, '
                         'vmName, Status and IP.',
                         '    "ids"    all vmIds.'
-                       )),
+                        )),
         'pause':  (serv.do_pause,
                        ('<vmId>',
                         'Pauses the execution of the virtual machine without '
                         'termination'
-                       )),
+                        )),
         'continue':  (serv.do_continue,
                        ('<vmId>',
                         'Continues execution after of a paused machine'
-                       )),
+                        )),
         'reset':  (serv.do_reset,
                        ('<vmId>',
                         'Sends reset signal to the vm'
-                       )),
+                        )),
         'setVmTicket': (serv.do_setVmTicket,
                         ('<vmId> <password> <sec> [disconnect|keep|fail], '
                             '[params={}]',
@@ -1873,37 +1873,37 @@
                          'currently-connected client.',
                          'Optional additional parameters in dictionary format,'
                          ' name:value,name:value'
-                        )),
+                         )),
         'migrate':   (serv.do_migrate,
                        ('vmId=<id> method=<offline|online> src=<host:[port]> '
                            'dst=<host:[port]>',
                         'Migrate a desktop from src machine to dst host using '
                         'the specified ports'
-                       )),
+                        )),
         'migrateStatus': (serv.do_mStat,
                           ('<vmId>',
                           'Check the progress of current outgoing migration'
-                          )),
+                           )),
         'migrateCancel': (serv.do_mCancel,
                            ('<vmId>',
                            '(not implemented) cancel machine migration'
-                           )),
+                            )),
         'sendkeys':  (serv.do_sendkeys,
                        ('<vmId> <key1> ...... <keyN>',
                         'Send the key sequence to the vm'
-                       )),
+                        )),
         'getVdsCapabilities': (serv.do_getCap,
                        ('',
                         'Get Capabilities info of the VDS'
-                       )),
+                        )),
         'getVdsCaps': (serv.do_getCap,
                        ('',
                         'Get Capabilities info of the VDS'
-                       )),
+                        )),
         'getVdsStats': (serv.do_getVdsStats,
                        ('',
                         'Get Statistics info on the VDS'
-                       )),
+                        )),
         'getVmStats': (serv.do_getVmStats,
                       ('<vmId>',
                         'Get Statistics info on the VM'
@@ -2125,7 +2125,7 @@
                         ('<sdUUID> <spUUID> <imgUUID> <volUUID> <srcPath> '
                             '<size>',
                         'Upload volume file into existing volume'
-                        )),
+                         )),
         'getVolumePath':  (serv.getVolumePath,
                       ('<sdUUID> <spUUID> <imgUUID> <volume uuid>',
                        'Returns the path to the requested uuid'
@@ -2156,110 +2156,110 @@
                          ('<sdUUID> <spUUID> <imgUUID> <Disk Image uuid>',
                          'Returns the parent of the volume. Error if no parent'
                          ' exists'
-                        )),
+                          )),
         'getVolumesList': (serv.getVolumesList,
                          ('<sdUUID> <spUUID> [imgUUID]',
                           'Returns list of volumes of imgUUID or sdUUID if '
                           'imgUUID absent'
-                         )),
+                          )),
         'getVolumeSize': (serv.getVolumeSize,
                          ('<sdUUID> <spUUID> <imgUUID> <volUUID>',
                           'Returns the apparent size and the true size of the '
                           'volume (in bytes)'
-                         )),
+                          )),
         'getFileList': (serv.getFileList,
                          ('<sdUUID> [pattern]',
                           'Returns files list from ISO domain'
-                         )),
+                          )),
         'getIsoList': (serv.getIsoList,
                          ('<spUUID>',
                           'Returns list of all .iso images in ISO domain'
-                         )),
+                          )),
         'getFloppyList': (serv.getFloppyList,
                          ('<spUUID>',
                           'Returns list of all .vfd images in ISO domain'
-                         )),
+                          )),
         'getImagesList': (serv.getImagesList,
                          ('<sdUUID>',
                           'Get list of all images of specific domain'
-                         )),
+                          )),
         'getImageDomainsList': (serv.getImageDomainsList,
                          ('<spUUID> <imgUUID> [datadomain=True]',
                           'Get list of all data domains in the pool that '
                           'contains imgUUID'
-                         )),
+                          )),
         'getConnectedStoragePoolsList': (serv.getConnectedStoragePoolsList,
                          ('',
                           'Get storage pools list'
-                         )),
+                          )),
         'getTaskInfo': (serv.getTaskInfo,
                          ('<TaskID>',
-                         'get async task info'
-                         )),
+                          'get async task info'
+                          )),
         'getAllTasksInfo': (serv.getAllTasksInfo,
                          ('',
-                         'get info of all async tasks'
-                         )),
+                          'get info of all async tasks'
+                          )),
         'getTaskStatus': (serv.getTaskStatus,
                          ('<TaskID>',
-                         'get task status'
-                         )),
+                          'get task status'
+                          )),
         'getAllTasksStatuses': (serv.getAllTasksStatuses,
                          ('',
-                         'list statuses of all async tasks'
-                         )),
+                          'list statuses of all async tasks'
+                          )),
         'getAllTasks': (serv.getAllTasks,
                          ('[tags=\'\']',
-                         'get status and information for all async tasks'
-                         )),
+                          'get status and information for all async tasks'
+                          )),
         'stopTask': (serv.stopTask,
                          ('<TaskID>',
-                         'stop async task'
-                         )),
+                          'stop async task'
+                          )),
         'clearTask': (serv.clearTask,
                          ('<TaskID>',
-                         'clear async task'
-                         )),
+                          'clear async task'
+                          )),
         'revertTask': (serv.revertTask,
                          ('<TaskID>',
-                         'revert async task'
-                         )),
+                          'revert async task'
+                          )),
         'prepareForShutdown': (serv.prepareForShutdown,
                          ('', ''
-                         )),
+                          )),
         'setLogLevel': (serv.do_setLogLevel,
                          ('<level> [logName][,logName]...', 'set log verbosity'
-                             ' level (10=DEBUG, 50=CRITICAL'
-                         )),
+                          ' level (10=DEBUG, 50=CRITICAL'
+                          )),
         'setMOMPolicy': (serv.do_setMOMPolicy,
                           ('<policyfile>', 'set MOM policy')),
         'deleteImage': (serv.deleteImage,
                        ('<sdUUID> <spUUID> <imgUUID> [<postZero>] [<force>]',
-                       'Delete Image folder with all volumes.',
-                       )),
+                        'Delete Image folder with all volumes.',
+                        )),
         'moveImage': (serv.moveImage,
                        ('<spUUID> <srcDomUUID> <dstDomUUID> <imgUUID> <vmUUID>'
-                           ' <op = COPY_OP/MOVE_OP> [<postZero>] [ <force>]',
-                       'Move/Copy image between storage domains within same '
-                       'storage pool'
-                       )),
+                        ' <op = COPY_OP/MOVE_OP> [<postZero>] [ <force>]',
+                        'Move/Copy image between storage domains within same '
+                        'storage pool'
+                        )),
         'cloneImageStructure': (serv.cloneImageStructure,
                        ('<spUUID> <sdUUID> <imgUUID> <dstSdUUID>',
-                       'Clone an image structure from a source domain to a '
-                       'destination domain within the same pool.'
-                       )),
+                        'Clone an image structure from a source domain to a '
+                        'destination domain within the same pool.'
+                        )),
         'syncImageData': (serv.syncImageData,
                        ('<spUUID> <sdUUID> <imgUUID> <dstSdUUID> <syncType>',
-                       'Synchronize image data between storage domains within '
-                       'same pool.'
-                       )),
+                        'Synchronize image data between storage domains '
+                        'within same pool.'
+                        )),
         'moveMultiImage': (serv.moveMultiImage,
                        ('<spUUID> <srcDomUUID> <dstDomUUID> '
                            '<imgList>({imgUUID=postzero,imgUUID=postzero,...})'
                            ' <vmUUID> [<force>]',
-                       'Move multiple images between storage domains within '
-                       'same storage pool'
-                       )),
+                        'Move multiple images between storage domains within '
+                        'same storage pool'
+                        )),
         'copyImage': (serv.copyImage,
                        ('<sdUUID> <spUUID> <vmUUID> <srcImgUUID> <srcVolUUID> '
                            '<dstImgUUID> <dstVolUUID> <dstDescr> <dstSdUUID> '
@@ -2268,7 +2268,7 @@
                         'Create new template/volume from VM.',
                         'Do it by collapse and copy the whole chain '
                         '(baseVolUUID->srcVolUUID)'
-                       )),
+                        )),
         'mergeSnapshots': (serv.mergeSnapshots,
                       ('<sdUUID> <spUUID> <vmUUID> <imgUUID> <Ancestor Image '
                           'uuid> <Successor Image uuid> [<postZero>]',
@@ -2283,7 +2283,7 @@
         'desktopLogoff': (serv.desktopLogoff,
                        ('<vmId> <force>',
                          'Lock user session. force should be set to true/false'
-                       )),
+                        )),
         'desktopLock': (serv.desktopLock,
                        ('<vmId>',
                          'Logoff current user'
@@ -2317,21 +2317,21 @@
                        ('bridge=<bridge> [vlan=<number>] [bond=<bond>] '
                            'nics=nic[,nic]',
                         'Add a new network to this vds.'
-                       )),
+                        )),
         'delNetwork':   (serv.do_delNetwork,
                        ('bridge=<bridge> [vlan=<number>] [bond=<bond>] '
                            'nics=nic[,nic]',
                         'Remove a network (and parts thereof) from this vds.'
-                       )),
+                        )),
         'editNetwork':   (serv.do_editNetwork,
                        ('oldBridge=<bridge> newBridge=<bridge> [vlan=<number>]'
                            ' [bond=<bond>] nics=nic[,nic]',
                         'Replace a network with a new one.'
-                       )),
+                        )),
         'setSafeNetworkConfig':   (serv.do_setSafeNetworkConfig,
                        ('',
                         'declare current network configuration as "safe"'
-                       )),
+                        )),
         'fenceNode':   (serv.do_fenceNode,
                        ('<addr> <port> <agent> <user> <passwd> <action> '
                            '[<secure> [<options>]] \n\t<action> is one of '
@@ -2339,29 +2339,29 @@
                            '(rsa, ilo, ipmilan, drac5, etc)\n\t<secure> '
                            '(true|false) may be passed to some agents',
                         'send a fencing command to a remote node'
-                       )),
+                        )),
         'repoStats':  (serv.repoStats,
                        ('',
                        "Get the the health status of the active domains"
-                      )),
+                        )),
         'snapshot':  (serv.snapshot,
                        ('<vmId> <sdUUID> <imgUUID> <baseVolUUID> <volUUID>',
-                       "Take a live snapshot"
-                      )),
+                        "Take a live snapshot"
+                        )),
         'setBalloonTarget':  (serv.setBalloonTarget,
                        ('<vmId> <target>',
-                       "Set VM's balloon target"
-                      )),
+                        "Set VM's balloon target"
+                        )),
         'diskReplicateStart': (serv.diskReplicateStart,
                        ('<vmId> <spUUID> <sdUUID> <imgUUID> <volUUID> '
                            '<dstSdUUID>',
                            "Start live replication to the destination domain"
-                       )),
+                        )),
         'diskReplicateFinish': (serv.diskReplicateFinish,
                        ('<vmId> <spUUID> <sdUUID> <imgUUID> <volUUID> '
                            '<dstSdUUID>',
                            "Start live replication to the destination domain"
-                       )),
+                        )),
     }
     if _glusterEnabled:
         commands.update(ge.getGlusterCmdDict(serv))


--
To view, visit http://gerrit.ovirt.org/9804
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8f9cf34866a258b1b3c3e6941ea743b8fad08289
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dan Kenigsberg <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to