Skip to content

Commit

Permalink
Fixed AttributeError in ensure_iso_mount function of zhmc_partition
Browse files Browse the repository at this point in the history
Signed-off-by: Uday Kiran Reddy Konda <Uday.Kiran.Reddy.Konda@ibm.com>
  • Loading branch information
Uday-Kiran-Reddy-Konda authored and andy-maier committed Feb 29, 2024
1 parent f8533c0 commit 9faaa8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/source/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Availability: `AutomationHub`_, `Galaxy`_, `GitHub`_
* Increased the minimum version of zhmcclient to 1.13.3 to pick up fixes and
performance improvements. (related to issue #904)

* Fixed readable attribute error when ensuring ISO mounted onto the partition. (related to issue #932)

**Enhancements:**

* Added a new make target 'end2end_show' to show the HMCs defined for end2end
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/zhmc_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ def ensure_iso_mount(params, check_mode):
try:
with open(image_file, 'rb') as fp:
if not check_mode:
image = fp.readall()
image = fp.read()
except IOError as exc:
raise ImageError(
"Cannot open ISO image file {fn!r} for reading: {exc}".
Expand Down

0 comments on commit 9faaa8e

Please sign in to comment.