Changeset 30cf15d81467e37c4f29bf704e93ca1d350f6277

Show
Ignore:
Timestamp:
11/05/09 21:58:32 (9 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1257458312 +0000
git-parent:

[dc11efaa881b0eadfba92e9a6a768e812a252784]

git-author:
Mark Harrison <mark@omniti.com> 1257458312 +0000
Message:

Change precedence of configuration stanzas

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • zetaback.in

    rdc11efa r30cf15d  
    451451sub config_get($$;$) { 
    452452  # Params: host, key, class 
     453  # Order of precedence: class, host, default 
    453454  if ($_[2]) { 
    454     return $conf{$_[0]}->{$_[1]} || $conf{$_[2]}->{$_[1]} || 
     455    return $conf{$_[2]}->{$_[1]} || $conf{$_[0]}->{$_[1]} || 
    455456        $conf{'default'}->{$_[1]}; 
    456457  } else {