~tribaal/charms/precise/storage/refactor-mount-volume

« back to all changes in this revision

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

  • Committer: David Britton
  • Date: 2014-02-05 20:46:42 UTC
  • mfrom: (26.1.89 storage)
  • Revision ID: dpb@canonical.com-20140205204642-qfwv0x6314bulcx7
merging chad's python/nfs additions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
import common_util
 
4
 
 
5
common_util.log("nfs: We've lost our shared NFS mount")
 
6
common_util.unmount_volume(remove_persistent_data=True)
 
7
common_util.log("nfs: Fairwell nfs mount, we hardly knew you")