forked from jjzhang/booth
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
28 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters