Commit a2294a09 by Guba Sándor

add version to agent update and fix pep8

parent ea6a29e0
...@@ -85,8 +85,11 @@ def agent_started(vm, version=None): ...@@ -85,8 +85,11 @@ def agent_started(vm, version=None):
if version and version != settings.AGENT_VERSION: if version and version != settings.AGENT_VERSION:
try: try:
with act.sub_activity('update', with act.sub_activity(
readable_name=ugettext_noop('update')): 'update',
readable_name=ugettext_noop('update to %(version)s'),
version=settings.AGENT_VERSION
):
update.apply_async( update.apply_async(
queue=queue, queue=queue,
args=(vm, create_agent_tar())).get(timeout=10) args=(vm, create_agent_tar())).get(timeout=10)
...@@ -98,8 +101,9 @@ def agent_started(vm, version=None): ...@@ -98,8 +101,9 @@ def agent_started(vm, version=None):
measure_boot_time(instance) measure_boot_time(instance)
send_init_commands(instance, act, vm) send_init_commands(instance, act, vm)
with act.sub_activity('start_access_server', with act.sub_activity(
readable_name=ugettext_noop('start acces server') 'start_access_server',
readable_name=ugettext_noop('start access server')
): ):
start_access_server.apply_async(queue=queue, args=(vm, )) start_access_server.apply_async(queue=queue, args=(vm, ))
......
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