From e9d2bfe580dd73c0f3d986764792168db2012d05 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Wed, 2 Sep 2015 16:27:41 -0700 Subject: [PATCH] Three attempts message is incorrect The code that is covered in this exception block does not actually retry three times, so it seems better to have the message not reference that it does. Change-Id: I0cc19aab65aa9ba4d73a8842390b712f7f63925c --- ironic_python_agent/extensions/image.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ironic_python_agent/extensions/image.py b/ironic_python_agent/extensions/image.py index 6731ccaed..a61a0fbec 100644 --- a/ironic_python_agent/extensions/image.py +++ b/ironic_python_agent/extensions/image.py @@ -128,8 +128,7 @@ def _install_grub2(device, root_uuid, efi_system_part_uuid=None): except processutils.ProcessExecutionError as e: error_msg = ('Installing GRUB2 boot loader to device %(dev)s ' - 'failed with %(err)s. Attempted 3 times.' % - {'dev': device, 'err': e}) + 'failed with %(err)s.' % {'dev': device, 'err': e}) LOG.error(error_msg) raise errors.CommandExecutionError(error_msg)