fence-agents: master - [cleanup] fence_wti: Fix variables that can be used before assignement
Marek GrĂ¡c
marx at fedoraproject.org
Wed Apr 9 15:12:45 UTC 2014
Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=28742ec6688175c8af15475e5bc8333337bce494
Commit: 28742ec6688175c8af15475e5bc8333337bce494
Parent: 24226ad4008ec1c0aceaa8f3612b1114516d6847
Author: Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate: Wed Apr 9 17:11:39 2014 +0200
Committer: Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Wed Apr 9 17:11:39 2014 +0200
[cleanup] fence_wti: Fix variables that can be used before assignement
---
fence/agents/wti/fence_wti.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/fence/agents/wti/fence_wti.py b/fence/agents/wti/fence_wti.py
index 34d85a1..9d49854 100644
--- a/fence/agents/wti/fence_wti.py
+++ b/fence/agents/wti/fence_wti.py
@@ -92,6 +92,10 @@ def get_plug_group_status(conn, options):
outlets = {}
line_index = 0
+ status_index = -1
+ plug_index = -1
+ name_index = -1
+
lines = listing.splitlines()
while line_index < len(lines) and line_index >= 0:
line = lines[line_index]
More information about the cluster-commits
mailing list