From 0952034d29be4b59bd162a2dc0b9e09b9cbe2e22 Mon Sep 17 00:00:00 2001 From: Michael Ablassmeier Date: Sat, 9 Dec 2023 14:04:37 +0100 Subject: [PATCH] remove bogus log statement, cleanup function --- libvirtnbdbackup/nbdcli/client.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/libvirtnbdbackup/nbdcli/client.py b/libvirtnbdbackup/nbdcli/client.py index 3d8c9c93..48597488 100644 --- a/libvirtnbdbackup/nbdcli/client.py +++ b/libvirtnbdbackup/nbdcli/client.py @@ -150,13 +150,9 @@ def connect(self) -> nbd.NBD: retry = retry + 1 continue - if connection: - log.info("Connection to NBD backend succeeded.") - self.connection = connection - return self - - log.info("Waiting for NBD Server, Retry: %s", retry) - retry = retry + 1 + log.info("Connection to NBD backend succeeded.") + self.connection = connection + return self def disconnect(self) -> None: """Close nbd connection handle"""