Update interfaces.

This commit is contained in:
Adam Gandelman 2012-12-18 11:59:03 -08:00
parent bcad5ae6f4
commit a7991d341a
5 changed files with 5 additions and 11 deletions

View File

@ -31,7 +31,7 @@ function install_hook {
done
}
function proxy_joined {
function storage_joined {
local devs=$(determine_block_devs)
local reldevices=""
for dev in $devs ; do
@ -49,7 +49,7 @@ function proxy_joined {
account_port="$(config-get account-server-port)"
}
function proxy_changed {
function storage_changed {
local www_dir=`relation-get www_dir`
local swift_hash=`relation-get swift_hash`
[[ -z $www_dir ]] || [[ -z $swift_hash ]] && exit 0
@ -68,6 +68,6 @@ function proxy_changed {
case $ARG0 in
"install") install_hook ;;
"start"|"stop") exit 0 ;;
"swift-proxy-relation-joined") proxy_joined ;;
"swift-proxy-relation-changed") proxy_changed ;;
"swift-storage-relation-joined") storage_joined ;;
"swift-storage-relation-changed") storage_changed ;;
esac

View File

@ -6,9 +6,3 @@ description: |
provides:
swift-storage:
interface: swift
requires:
swift-proxy:
interface: swift
peers:
swift-ring:
interface: swift

View File

@ -1 +1 @@
50
51