git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8489bbb
)
(no commit message)
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Mon, 26 Oct 2009 19:40:47 +0000
(19:40 +0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Mon, 26 Oct 2009 19:40:47 +0000
(19:40 +0000)
sfatables/commands/Add.py
patch
|
blob
|
history
diff --git
a/sfatables/commands/Add.py
b/sfatables/commands/Add.py
index
fc5ed71
..
e7657ff
100644
(file)
--- 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))