Alon Bar-Lev has uploaded a new change for review.

Change subject: plugins: fix pep8 issues
......................................................................

plugins: fix pep8 issues

Change-Id: Ie344e77e686fd9b6f411f096b7bf1dc304980e88
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M src/otopi/plugin.py
M src/plugins/otopi/system/command.py
2 files changed, 6 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/89/35489/1

diff --git a/src/otopi/plugin.py b/src/otopi/plugin.py
index 2f3fd5b..47ab123 100644
--- a/src/otopi/plugin.py
+++ b/src/otopi/plugin.py
@@ -434,7 +434,7 @@
                     if not _isString(v):
                         raise RuntimeError(
                             _(
-                               'Malformed argument {argType}:{arg}.'
+                                'Malformed argument {argType}:{arg}.'
                             ).format(
                                 argType=type(v),
                                 arg=v,
diff --git a/src/plugins/otopi/system/command.py 
b/src/plugins/otopi/system/command.py
index 5e2c23a..91680a1 100644
--- a/src/plugins/otopi/system/command.py
+++ b/src/plugins/otopi/system/command.py
@@ -45,12 +45,12 @@
         searchPath = self.environment[
             constants.SysEnv.COMMAND_PATH
         ].split(':')
-        for command in self.command.enum():
-            if self.command.get(command=command, optional=True) is None:
+        for cmd in self.command.enum():
+            if self.command.get(command=cmd, optional=True) is None:
                 for path in searchPath:
-                    commandPath = os.path.join(path, command)
-                    if os.path.exists(commandPath):
-                        self.command.set(command=command, path=commandPath)
+                    cmdPath = os.path.join(path, cmd)
+                    if os.path.exists(cmdPath):
+                        self.command.set(command=cmd, path=cmdPath)
 
     @plugin.event(
         stage=plugin.Stages.STAGE_INIT,


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie344e77e686fd9b6f411f096b7bf1dc304980e88
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to