Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=0bf859a69... Commit: 0bf859a69fb8546c29946e985c030d0cc3b8e8f2 Parent: 62d90e3a0827fcdc5be632bdf4103d3c08b39622 Author: Marek 'marx' Grac mgrac@redhat.com AuthorDate: Mon Jun 23 17:10:11 2014 +0200 Committer: Marek 'marx' Grac mgrac@redhat.com CommitterDate: Mon Jun 23 17:10:11 2014 +0200
fencing: Checking status of several slots was done incorectly
Found-by: Ondrej Mular --- fence/agents/lib/fencing.py.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py index 5084f24..0584b7e 100644 --- a/fence/agents/lib/fencing.py.py +++ b/fence/agents/lib/fencing.py.py @@ -818,11 +818,11 @@ def set_multi_power_fn(tn, options, set_power_fn, get_power_fn, retry_attempts = set_power_fn(tn, options) time.sleep(int(options["--power-wait"]))
- for _ in xrange(int(options["--power-timeout"])): - if get_multi_power_fn(tn, options, get_power_fn) != options["--action"]: - time.sleep(1) - else: - return True + for _ in xrange(int(options["--power-timeout"])): + if get_multi_power_fn(tn, options, get_power_fn) != options["--action"]: + time.sleep(1) + else: + return True return False
def show_docs(options, docs=None):
cluster-commits@lists.fedorahosted.org