~jneo8/juju-backup-all:master

Last commit made on 2022-08-23
Get this branch:
git clone -b master https://git.launchpad.net/~jneo8/juju-backup-all
Only JamesLin can upload to this branch. If you are JamesLin please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~jneo8/juju-backup-all

Recent commits

7535018... by Ksawery Dziekoński

Allow for model omission in controller-wide backups

Reviewed-on: https://code.launchpad.net/~ksdziekonski/juju-backup-all/+git/juju-backup-all/+merge/425853
Reviewed-by: Paul Goins <email address hidden>
Reviewed-by: Eric Chen <email address hidden>

0f0bf50... by Garrett Neugent

Do not use -r for removing backup files.

Currently all backups are saved as a gzip file, so including the
-r flag for recursive deletion is unnecessary.

Reviewed-on: https://code.launchpad.net/~thogarre/juju-backup-all/+git/juju-backup-all/+merge/424592
Reviewed-by: Paul Goins <email address hidden>
Reviewed-by: Eric Chen <email address hidden>

cdd8ee7... by Tianqi Xiao

set juju version in setup.cfg

Reviewed-on: https://code.launchpad.net/~txiao/juju-backup-all/+git/juju-backup-all/+merge/427865
Reviewed-by: Xiyue Wang <email address hidden>
Reviewed-by: Eric Chen <email address hidden>

6ac195c... by Tianqi Xiao

set juju version in setup.cfg

c0d584b... by Celia Wang

Fix lint

Reviewed-on: https://code.launchpad.net/~ziyiwang/juju-backup-all/+git/juju-backup-all/+merge/427668
Reviewed-by: Jose Guedez <email address hidden>

2a61779... by Celia Wang

Fix lint

2a0cb16... by Ksawery Dziekoński

Allow for model omission in controller-wide backups

Related: LP#1980215

ee2d5a1... by Garrett Neugent

Do not use -r for removing backup files.

Currently all backups are saved as a gzip file, so including the
-r flag for recursive deletion is unnecessary.

a70f14a... by Garrett Neugent

Address isort and black lint checks,upgrade black.

Pre-commit won't allow its yaml file in a separate commit, so the
upgrade to black 22.3.0 is included as well. This is to address
bug 2964 [0] where black fails locally with pre-commit.

[0] https://github.com/psf/black/issues/2964

8952457... by Joe Guo

use local-fan addr as public addr for lxd

In libjuju[0], machine.dns_name will look for `public` or `local-cloud` address.
For lxd, neither exists, it will return None and cause ssh/scp functions fail.[1]

This patch use `local-fan` address as public address, when neither public nor local-cloud addr is available. so `machine.dns_name` can still get a valid address.

[0]: https://github.com/juju/python-libjuju/blob/master/juju/machine.py#L231
[1]: https://github.com/juju/python-libjuju/issues/611

Reviewed-on: https://code.launchpad.net/~guoqiao/juju-backup-all/+git/juju-backup-all/+merge/414135
Reviewed-by: Alvaro Uria <email address hidden>