Antoni Segura Puimedon has uploaded a new change for review.

Change subject: Fix code style for API.
......................................................................

Fix code style for API.

Apply the code style suggestions in:
    http://gerrit.ovirt.org/#/c/9993/1/vdsm/API.py

Change-Id: I5afe33338146506564d83983eb136c058fd25257
Signed-off-by: Antoni S. Puimedon <[email protected]>
---
M vdsm/API.py
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/50/10950/1

diff --git a/vdsm/API.py b/vdsm/API.py
index 4462033..16bebb5 100644
--- a/vdsm/API.py
+++ b/vdsm/API.py
@@ -166,8 +166,8 @@
                             pickledMachineParams = pickle.load(f)
 
                         if type(pickledMachineParams) == dict:
-                            self.log.debug('loaded pickledMachineParams '
-                                           + str(pickledMachineParams))
+                            self.log.debug('loaded pickledMachineParams ' +
+                                           str(pickledMachineParams))
                             self.log.debug('former conf ' + str(vmParams))
                             vmParams.update(pickledMachineParams)
                     finally:
@@ -231,8 +231,8 @@
             if vmParams.get('display') not in ('vnc', 'qxl', 'qxlnc'):
                 return {'status': {'code': errCode['createErr']
                                                   ['status']['code'],
-                                   'message': 'Unknown display type %s'
-                                              % vmParams.get('display')}}
+                                   'message': 'Unknown display type %s' %
+                                              vmParams.get('display')}}
             if 'nicModel' not in vmParams:
                 vmParams['nicModel'] = config.get('vars', 'nic_model')
             vmParams['displayIp'] = self._getNetworkIp(vmParams.get(


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

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

Reply via email to