~hopem/charms/precise/glance/lp1227008

« back to all changes in this revision

Viewing changes to hooks/glance-relations

  • Committer: Adam Gandelman
  • Date: 2012-01-20 19:34:57 UTC
  • Revision ID: adamg@canonical.com-20120120193457-tdqarsxmzmtovpmt
keystone_changed: Fail hook if cannot update pipeline

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
  keystone_host=$(relation-get private-address)
98
98
  # update the pipeline settings in both configs
99
99
  update_pipeline "glance-api" \
100
 
    "versionnegotiation authtoken auth-context apiv1app" "api"
 
100
    "versionnegotiation authtoken auth-context apiv1app" "api" || exit 1
101
101
  update_pipeline "glance-registry" \
102
 
    "authtoken auth-context registryapp" "registry"
 
102
    "authtoken auth-context registryapp" "registry" || exit 1
103
103
 
104
104
  for i in api registry ; do
105
105
    set_or_update "service_host" "$keystone_host" $i