~abentley/juju-ci-tools/client-from-config-4

« back to all changes in this revision

Viewing changes to assess_cs_staging.py

  • Committer: Aaron Bentley
  • Date: 2016-03-18 14:47:06 UTC
  • mto: This revision was merged to the branch mainline in revision 1324.
  • Revision ID: aaron.bentley@canonical.com-20160318144706-z7wy9c21m3psi6g5
Introduce set_model_name, update tests, check controller on bootstrap.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
log = logging.getLogger("assess_cs_staging")
22
22
 
23
23
 
24
 
def _get_ssh_script(ip):
25
 
    return (
 
24
def _set_charm_store_ip(client, ip):
 
25
    cmd = (
26
26
        '''sudo bash -c "echo '%s store.juju.ubuntu.com' >> /etc/hosts"'''
27
27
        % ip)
28
 
 
29
 
 
30
 
def _set_charm_store_ip(client, ip):
31
 
    client.get_controller_client().juju('ssh', ('0', _get_ssh_script(ip)))
 
28
    client.juju('ssh', ('0', cmd))
32
29
 
33
30
 
34
31
def assess_deploy(client, charm):