203
203
raise AssertionError('Machine not destroyed: {}.'.format(agent_id))
207
207
"""Use 'juju ssh' to check that the deployed series meets expectations."""
208
result = client.get_juju_output('ssh', '0', 'lsb_release', '-c')
208
result = client.get_juju_output('ssh', machine, 'lsb_release', '-c')
209
209
label, codename = result.rstrip().split('\t')
213
216
if codename != expected_codename:
215
218
'Series is {}, not {}'.format(codename, expected_codename))