Fix log formatting error in iscsi.py

This fixes a ValueError exception that would occur if
log debug was enabled in IPA.

Change-Id: Id95f291dd77d69e7d4dd4f945c6c151db7a0646b
Closes-bug: #1503354
This commit is contained in:
Dan Prince
2015-10-06 13:46:08 -04:00
committed by Jay Faulkner
parent e7de4bba45
commit 5bbb9ded08

View File

@@ -55,7 +55,7 @@ def _wait_for_iscsi_daemon(interval=1, attempts=10):
def _start_iscsi_daemon(iqn, device):
"""Start a ISCSI target for the device."""
LOG.debug("Starting ISCSI target on device %{device}", {'device': device})
LOG.debug("Starting ISCSI target on device %(device)s", {'device': device})
# Start ISCSI Target daemon
_execute(['tgtd'], "Unable to start the ISCSI daemon")