From: Sapan Bhatia Date: Mon, 26 Oct 2009 19:40:47 +0000 (+0000) Subject: (no commit message) X-Git-Tag: sfa-0.9-6~106 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=f2c5cd033b7f43896a32fca67f79f2979af1c44f --- diff --git a/sfatables/commands/Add.py b/sfatables/commands/Add.py index fc5ed719..e7657fff 100644 --- a/sfatables/commands/Add.py +++ b/sfatables/commands/Add.py @@ -41,7 +41,7 @@ class Add(Command): option_name = option['name'] option_value = getattr(options,option_name) - if (hasattr(options,option_name) and options.option_name): + if (hasattr(options,option_name) and getattr(options,option_name)): context = p.xpathEval("//rule[@element='%s' or @element='*']/argument[name='%s']"%(element, option_name)) if (not context): raise Exception('Unknown option %s for match %s and element %s'%(option,option['name'], element))