Patchwork [1/2] wic: default plugin type directory should be added only once

login
register
mail settings
Submitter João Henrique Freitas
Date June 4, 2014, 1:28 a.m.
Message ID <1401845283-7941-2-git-send-email-joaohf@gmail.com>
Download mbox | patch
Permalink /patch/73179/
State Accepted
Commit 567fec4b0d20827340eb715decacb4529300ca61
Headers show

Comments

João Henrique Freitas - June 4, 2014, 1:28 a.m.
Fix 'for' statement identention so plugin type directory will be
added only once in layers_dirs list.

No functional changes.

Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com>
---
 scripts/lib/mic/plugin.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/scripts/lib/mic/plugin.py b/scripts/lib/mic/plugin.py
index bec33d6..dec0e5b 100644
--- a/scripts/lib/mic/plugin.py
+++ b/scripts/lib/mic/plugin.py
@@ -57,8 +57,8 @@  class PluginMgr(object):
             path = os.path.join(layer_path, SCRIPTS_PLUGIN_DIR, ptype)
             layer_dirs.append(path)
 
-            path = os.path.join(dl, ptype)
-            layer_dirs.append(path)
+        path = os.path.join(dl, ptype)
+        layer_dirs.append(path)
 
         return layer_dirs