~bjornt/charms/precise/storage/multiple-units

« back to all changes in this revision

Viewing changes to hooks/storage-provider.d/nfs/data-relation-changed

  • Committer: David Britton
  • Date: 2014-02-14 15:34:45 UTC
  • mfrom: (30.1.16 storage)
  • Revision ID: dpb@canonical.com-20140214153445-95fg9jtve9pyztoy
Merging jseutters storage-with-broker-provider [r=csmith,dpb]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
 
3
3
import common_util
4
 
import os
5
 
import subprocess
6
 
 
7
 
current_dir = os.path.dirname(os.path.realpath(__file__))
8
 
config_changed = "%s/config-changed" % current_dir
9
 
if os.path.exists(config_changed):
10
 
    subprocess.check_call(config_changed)
11
4
 
12
5
common_util.mount_volume()  # Will wait until mountpoint is set by principal