~gandelman-a/charms/precise/nova-cloud-controller/avoid_restarts

« back to all changes in this revision

Viewing changes to hooks/nova-cloud-controller-common

  • Committer: Adam Gandelman
  • Date: 2012-06-12 19:03:20 UTC
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: adamg@canonical.com-20120612190320-0nrh5qjt8vzz6v4e
set_or_update(): Update for new .ini config format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  [[ -z "$CONF_FILE" ]] && CONF_FILE=$NOVA_CONF
29
29
 
30
30
  case "$CONF_FILE" in
31
 
    "$NOVA_CONF") match="\-\-$KEY="
32
 
                  pattern="--$KEY="
 
31
    "$NOVA_CONF") match="^$KEY="
 
32
                  pattern="$KEY="
33
33
                  out=$pattern
34
34
                  ;;
35
35
    "$API_CONF") match="^$KEY = "