Просмотр исходного кода

Added the omitted `self._minion_pool_id` into the
exception message for proper formatting.

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>

Mihaela Balutoiu 1 год назад
Родитель
Сommit
e51a6a84a0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      coriolis/minion_manager/rpc/tasks.py

+ 1 - 1
coriolis/minion_manager/rpc/tasks.py

@@ -646,7 +646,7 @@ class AllocateSharedPoolResourcesTask(BaseMinionManangerTask):
                 raise exception.InvalidMinionPoolSelection(
                 raise exception.InvalidMinionPoolSelection(
                     "[Task '%s'] Minion pool '%s' doesn't exist in the DB. "
                     "[Task '%s'] Minion pool '%s' doesn't exist in the DB. "
                     "It cannot have shared resources deployed for it." % (
                     "It cannot have shared resources deployed for it." % (
-                        self._task_name))
+                        self._task_name, self._minion_pool_id))
             if minion_pool.shared_resources:
             if minion_pool.shared_resources:
                 raise exception.InvalidMinionPoolState(
                 raise exception.InvalidMinionPoolState(
                     "[Task '%s'] Minion pool already has shared resources "
                     "[Task '%s'] Minion pool already has shared resources "