~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to wait_for_agent_update.py

  • Committer: Aaron Bentley
  • Date: 2015-08-19 15:07:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1069.
  • Revision ID: aaron.bentley@canonical.com-20150819150708-88xesx4iardg12b4
Wait for proc to exit after signalling.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
from __future__ import print_function
3
3
 
 
4
__metaclass__ = type
 
5
 
4
6
from jujupy import Environment
5
7
 
6
8
import sys
7
9
 
8
10
 
9
 
__metaclass__ = type
10
 
 
11
 
 
12
11
def agent_update(environment):
13
12
    env = Environment.from_config(environment)
14
13
    env.wait_for_version(env.get_matching_agent_version())