From dcaabc4f47c7af2669a9e4d786b295c1e91d00d3 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Mon, 10 May 2010 18:05:29 +0200 Subject: [PATCH] Fix import/export 63bcea2a5 added file checks for import/export, but unfortunately they were broken. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Guido Trotter <ultrotter@google.com> --- lib/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/backend.py b/lib/backend.py index cbaea3fa5..fcf6da13b 100644 --- a/lib/backend.py +++ b/lib/backend.py @@ -2657,7 +2657,7 @@ def StartImportExportDaemon(mode, key_name, ca, host, port, instance, assert ca is not None for i in [key_path, cert_path]: - if os.path.exists(i): + if not os.path.exists(i): _Fail("File '%s' does not exist" % i) status_dir = _CreateImportExportStatusDir(prefix) -- GitLab