Description of problem:
fence_hpblade.py fails with "TypeError: log_expect() takes exactly 3 arguments (4 given)"
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Invoke the command adapting the parameters to your environment
fence_hpblade -v -x -a c7000.example.com -l user -p password --plug=6
The command fails with:
Traceback (most recent call last):
File "/usr/sbin/fence_hpblade", line 134, in <module>
File "/usr/sbin/fence_hpblade", line 127, in main
options["enc_type"] = get_enclosure_type(conn, options)
File "/usr/sbin/fence_hpblade", line 19, in get_enclosure_type
conn.log_expect(options, options["--command-prompt"], int(options["--shell-timeout"]))
TypeError: log_expect() takes exactly 3 arguments (4 given)
The command is executed correctly.
According to commit ea652f979107bd9f5d7eef00f2652dff07224499, 'log_expect' was refactored but the call within fence_hpblade was not updated. I subitted a PR upstream
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.