Commit 60aa1540 by Bach Dániel

vm: fix agent_started()

parent c8d4ae25
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License along # You should have received a copy of the GNU General Public License along
# with CIRCLE. If not, see <http://www.gnu.org/licenses/>. # with CIRCLE. If not, see <http://www.gnu.org/licenses/>.
from common.models import create_readable
from manager.mancelery import celery from manager.mancelery import celery
from vm.tasks.agent_tasks import (restart_networking, change_password, from vm.tasks.agent_tasks import (restart_networking, change_password,
set_time, set_hostname, start_access_server, set_time, set_hostname, start_access_server,
...@@ -87,8 +88,9 @@ def agent_started(vm, version=None): ...@@ -87,8 +88,9 @@ def agent_started(vm, version=None):
try: try:
with act.sub_activity( with act.sub_activity(
'update', 'update',
readable_name=ugettext_noop('update to %(version)s'), readable_name=create_readable(
version=settings.AGENT_VERSION ugettext_noop('update to %(version)s'),
version=settings.AGENT_VERSION)
): ):
update.apply_async( update.apply_async(
queue=queue, queue=queue,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment