Skip to contentSkip to conversation

fence_ipmilan: send empty password, if password is not entered

PATCH New Ondrej Mular 1 participant 1 message Apr 3, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 fence_ipmilan: send empty password, if password is not entered

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(+)
fence/agents/ipmilan/fence_ipmilan.py +2 -0
index 1e52ccc..632f13d 100644
@@ -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"]
Signature · 1 line
1.8.3.1