src/bin/proxmox-backup-client.rs: login before starting backup

This commit is contained in:
Dietmar Maurer
2019-03-01 06:48:41 +01:00
parent 1757747836
commit 51144821f9
2 changed files with 10 additions and 6 deletions

View File

@ -163,7 +163,7 @@ impl HttpClient {
Self::run_request(request)
}
fn login(&mut self) -> Result<(String, String), Error> {
pub fn login(&mut self) -> Result<(String, String), Error> {
if let Some(ref ticket) = self.ticket {
if let Some(ref token) = self.token {