diff --git a/hooks/swift-storage-node-relations b/hooks/swift-storage-node-relations index 1e1a984..25c93da 100755 --- a/hooks/swift-storage-node-relations +++ b/hooks/swift-storage-node-relations @@ -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 diff --git a/hooks/swift-proxy-relation-changed b/hooks/swift-storage-relation-changed similarity index 100% rename from hooks/swift-proxy-relation-changed rename to hooks/swift-storage-relation-changed diff --git a/hooks/swift-proxy-relation-joined b/hooks/swift-storage-relation-joined similarity index 100% rename from hooks/swift-proxy-relation-joined rename to hooks/swift-storage-relation-joined diff --git a/metadata.yaml b/metadata.yaml index 65366ea..2519114 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -6,9 +6,3 @@ description: | provides: swift-storage: interface: swift -requires: - swift-proxy: - interface: swift -peers: - swift-ring: - interface: swift diff --git a/revision b/revision index e373ee6..82cced2 100644 --- a/revision +++ b/revision @@ -1 +1 @@ -50 +51