~justin-fathomdb/charms/trusty/mediawiki/trunk

« back to all changes in this revision

Viewing changes to hooks/slave-relation-changed

  • Committer: Clint Byrum
  • Date: 2011-10-10 14:44:59 UTC
  • Revision ID: clint@ubuntu.com-20111010144459-816jlv2z6sdlyaxu
updating mediawiki for recent juju changes (revision, open-port, private-address in relation-get)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    $node = json_decode($json);
35
35
    if ($node->slave == 'True')
36
36
    {
37
 
        $dbservers[] = array('host'=>$node->host,'dbname'=>$node->database,'user'=>$node->user,'password'=>$node->password,'type'=>'mysql','load'=>1,'flags'=>DBO_DEFAULT); 
 
37
        $dbservers[] = array('host'=>$node->{'private-address'},'dbname'=>$node->database,'user'=>$node->user,'password'=>$node->password,'type'=>'mysql','load'=>1,'flags'=>DBO_DEFAULT); 
38
38
    }
39
39
}
40
40