HomeClusterLabs Projects
Diffusion Booth 0c94ea1d5351

Refactor: call find_site_by_name just once, up the stream
0c94ea1d5351Unpublished

Unpublished Commit · Learn More

  • Repository Importing: This repository is still importing.
  • Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Refactor: call find_site_by_name just once, up the stream

Respective logic was duplicated for all "booth list/peers/grant/revoke"
and "geostore list/get/set/del" separately, so utilize a natural control
flow to carry this once-resolved target site from here, sharing it with
the special case of "daemon" role invoked with "-s site" (debug mode).
Side effect: simpler, terser code.

Details

Provenance
Jan Pokorný <jpokorny@redhat.com>Authored on Sep 13 2016, 2:10 PM
Parents
rB1185487afbd2: Low: make daemon with "-s site" (debug mode) claim "myself"
Branches
Unknown
Tags
Unknown

Event Timeline