~barman-team/barman/trunk

Viewing all changes in revision 294.

  • Committer: Marco Nenciarini
  • Author(s): Gabriele Bartolini
  • Date: 2015-07-02 16:22:25 UTC
  • Revision ID: git-v1:093c676d97b67a74f2e2b3bc79b4b12853a9dfc3
Standard error management for server commands

Standardised the process of managing errors with server commands in
barman/cli.py. By default, inactive servers are skipped (without error)
as well as temporarily disabled servers (with error). No distinction is
made between calling a command with one server as target or with a list
of them (including 'all'). Exceptions are check (no server is skipped,
errors are returned only for active servers), cron (no error is ever
returned), list-server and diagnose (both managing active/disabled
servers with no errors). Inactive servers are the ones with 'active'
option set to False. Disabled servers are the ones with internal
directory conflicts (e.g. WALs directory = base backup directory).

Signed-off-by: Gabriele Bartolini <gabriele.bartolini@2ndQuadrant.it>
Signed-off-by: Giulio Calacoci <giulio.calacoci@2ndquadrant.it>
Signed-off-by: Marco Nenciarini <marco.nenciarini@2ndquadrant.it>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: