~clint-fewbar/charms/precise/galera/trunk

« back to all changes in this revision

Viewing changes to hooks/db-relation-broken

  • Committer: Clint Byrum
  • Date: 2012-11-02 13:01:53 UTC
  • Revision ID: clint@fewbar.com-20121102130153-xr47yb01b2vgxp3w
deep changes because new units share the same data as the first

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
 
3
3
import os
 
4
import subprocess
4
5
 
5
6
from common import *
6
7
 
19
20
 
20
21
if slave and slave_configured:
21
22
    os.unlink(slave_configured_path)
 
23
 
 
24
subprocess.check_call(['relation-set', '-r', galera_rid, '%s=' % (database_name)])