~juju-qa/juju-ci-tools/trunk

« back to all changes in this revision

Viewing changes to assess_container_networking.py

  • Committer: Christopher Lee
  • Date: 2017-03-23 04:28:57 UTC
  • mto: (1938.5.4 juju_timing_reporting)
  • mto: This revision was merged to the branch mainline in revision 1982.
  • Revision ID: chris.lee@canonical.com-20170323042857-up64h0vev2qyzfcr
Update tests to reflect new returns from command wrappers (and ModelClient.juju).

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
 
249
249
        d = re.search(r'^default\s+via\s+([\d\.]+)\s+', routes, re.MULTILINE)
250
250
        if d:
251
 
            rc, _ = client.juju('ssh', ('--proxy', target,
252
 
                                     'ping -c1 -q ' + d.group(1)), check=False)
 
251
            rc, _ = client.juju(
 
252
                'ssh',
 
253
                ('--proxy', target, 'ping -c1 -q ' + d.group(1)), check=False)
253
254
            if rc != 0:
254
255
                raise ValueError('%s unable to ping default route' % target)
255
256
        else: