summaryrefslogtreecommitdiffstats
path: root/pyfirstaidkit/plugins.py
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-10-24 11:23:26 +0200
committerJoel Andres Granados <jgranado@redhat.com>2008-10-24 15:01:36 +0200
commit0e97e5cf3ea3dcc7aef434f358394127b02575d2 (patch)
tree5d520877b601259c787347231b77c33f3714ca19 /pyfirstaidkit/plugins.py
parent8d54d4fcd456b3d57c86d35a3dc2544d21c93ef4 (diff)
downloadfirstaidkit-0e97e5cf3ea3dcc7aef434f358394127b02575d2.tar.gz
firstaidkit-0e97e5cf3ea3dcc7aef434f358394127b02575d2.tar.xz
firstaidkit-0e97e5cf3ea3dcc7aef434f358394127b02575d2.zip
GrubPlugin:
Parse the arguments correctly for grub plugin. Set the internal variables correctly for grub plguin. Use the internal variavels when deciding which dev to install to. plugin.py: user lstrip instead of just strip to take off the first part of the argument string. This still has an issue as the strip does not strip strings but strips away all the characters listed in the str. At the moment its working because the args always begin with "-" and the plugin names dont have "-" in their names. but this might be a problem in the future.
Diffstat (limited to 'pyfirstaidkit/plugins.py')
-rw-r--r--pyfirstaidkit/plugins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyfirstaidkit/plugins.py b/pyfirstaidkit/plugins.py
index 65ef049..3c6d27d 100644
--- a/pyfirstaidkit/plugins.py
+++ b/pyfirstaidkit/plugins.py
@@ -608,11 +608,11 @@ class PluginSystem(object):
# We see if the args line begins with any plugin name.
m = re.search("^%s "%plugin, value)
if m:
- args.append(value.strip(plugin).strip(" "))
+ args.append(value.lstrip(plugin).strip(" "))
# We also want to be able to configure separate flows
m = re.search("^%s/%s "% (plugin, flowName), value)
if m:
- args.append(value.strip(plugin).strip(" "))
+ args.append(value.lstrip(plugin+'/'+flowName).strip(" "))
infosection = getattr(Info, plugin)
infosection.unlock()