1 --- fence-agents-4.0.10/fence/agents/lib/check_used_options.py.orig 2014-07-01 12:53:45.000000000 +0200
2 +++ fence-agents-4.0.10/fence/agents/lib/check_used_options.py 2014-07-05 08:41:55.273724364 +0200
5 ## add UUID which is derived automatically from --plug if possible
6 available["--uuid"] = True
7 + # --plugs is constructed from --plug
8 + available["--plugs"] = True
9 + # probably should be defined
10 + available["--managed"] = True
11 + # used temporarily in lib/fencing.py
12 + available["--original-action"] = True
14 ## all_opt defined in fence agent are found
15 agent_file = open(agent)
18 for option in option_use_re.findall(line):
19 if not available.has_key(option):
20 - print "ERROR on line %d in %s: option %s is not defined" % (counter, agent, option_use_re.search(line).group(1))
21 + print "ERROR on line %d in %s: option %s is not defined" % (counter, agent, option)
22 without_errors = False
24 for option in option_has_re.findall(line):
25 if not available.has_key(option):
26 - print "ERROR on line %d in %s: option %s is not defined" % (counter, agent, option_has_re.search(line).group(1))
27 + print "ERROR on line %d in %s: option %s is not defined" % (counter, agent, option)
28 without_errors = False