[pve-devel] [PATCH V2 1/2] Make return value logical correct

Wolfgang Link w.link at proxmox.com
Wed Jun 15 08:10:32 CEST 2016


---
 pve-zsync | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pve-zsync b/pve-zsync
index ff9ee8f..4491d1a 100644
--- a/pve-zsync
+++ b/pve-zsync
@@ -114,9 +114,9 @@ sub check_pool_exists {
     };
 
     if ($@) {
-	return 1;
+	return 0;
     }
-    return undef;
+    return 1;
 }
 
 sub parse_target {
-- 
2.1.4




More information about the pve-devel mailing list