Commit dcaabc4f authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Fix import/export

63bcea2a

 added file checks for import/export, but unfortunately they
were broken.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 01144827
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment