Hyper-V: Change variable in debug log message
The variable used in the log message is incorrect. The log message
outputs the file size instead of the internal VHD size.
Closes-bug #1275805
(cherry-picked from commit 7020f6eccf
)
Change-Id: I270709098e058cf51bbe6494b903a461b3938d15
This commit is contained in:
parent
9655a9c515
commit
04b37be3b8
|
@ -175,12 +175,12 @@ class VMOps(object):
|
|||
" original size is %(base_vhd_size)s, the"
|
||||
" newer size is %(root_vhd_size)s"
|
||||
) % {'base_vhd_size': base_vhd_size,
|
||||
'root_vhd_size': root_vhd_size}
|
||||
'root_vhd_size': root_vhd_internal_size}
|
||||
raise vmutils.HyperVException(error_msg)
|
||||
elif root_vhd_internal_size > base_vhd_size:
|
||||
LOG.debug(_("Resizing VHD %(root_vhd_path)s to new "
|
||||
"size %(root_vhd_size)s"),
|
||||
{'base_vhd_path': base_vhd_path,
|
||||
{'root_vhd_size': root_vhd_internal_size,
|
||||
'root_vhd_path': root_vhd_path})
|
||||
self._vhdutils.resize_vhd(root_vhd_path, root_vhd_size)
|
||||
except Exception:
|
||||
|
|
Loading…
Reference in New Issue