]> git.pld-linux.org Git - packages/fence-agents.git/blob - fence-agents-check.patch
- updated to 4.0.7
[packages/fence-agents.git] / fence-agents-check.patch
1 --- fence-agents-4.0.5/fence/agents/lib/check_used_options.py.orig      2013-10-22 17:06:49.000000000 +0200
2 +++ fence-agents-4.0.5/fence/agents/lib/check_used_options.py   2013-11-01 09:35:22.583722951 +0100
3 @@ -22,6 +22,10 @@
4  
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  
12         ## all_opt defined in fence agent are found
13         agent_file = open(agent)
14 @@ -48,12 +52,12 @@
15  
16                 for x in option_use_re.findall(line):
17                         if not available.has_key(x):
18 -                               print "ERROR on line %d in %s: option %s is not defined" % (counter, agent, option_use_re.search(line).group(1))
19 +                               print "ERROR on line %d in %s: option %s is not defined" % (counter, agent, x)
20                                 without_errors = False
21  
22                 for x in option_has_re.findall(line):
23                         if not available.has_key(x):
24 -                               print "ERROR on line %d in %s: option %s is not defined" % (counter, agent, option_has_re.search(line).group(1))
25 +                               print "ERROR on line %d in %s: option %s is not defined" % (counter, agent, x)
26                                 without_errors = False
27  
28         if without_errors:
This page took 0.081337 seconds and 3 git commands to generate.