Previously, agent stuck on password prompt from ipmitool, if password was not 
specified.

Resolves: rhbz#1083600

---
 fence/agents/ipmilan/fence_ipmilan.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fence/agents/ipmilan/fence_ipmilan.py 
b/fence/agents/ipmilan/fence_ipmilan.py
index 1e52ccc..632f13d 100644
--- a/fence/agents/ipmilan/fence_ipmilan.py
+++ b/fence/agents/ipmilan/fence_ipmilan.py
@@ -91,6 +91,8 @@ def create_command(options, action):
        # --password / -p
        if options.has_key("--password"):
                cmd += " -P " + quote(options["--password"])
+       else:
+               cmd += " -P ''"
 
        # --cipher / -C
        cmd += " -C " + options["--cipher"]
-- 
1.8.3.1

Reply via email to