From 4db58e164aa6814e4b1cc4e8d74729066f914f55 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Thu, 15 Jul 2021 20:36:55 +0200 Subject: ssh_support: Fix wrong comparison operators --- rumba/ssh_support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rumba/ssh_support.py b/rumba/ssh_support.py index 06e7699..77c4fb6 100644 --- a/rumba/ssh_support.py +++ b/rumba/ssh_support.py @@ -271,7 +271,7 @@ def copy_files_to_testbed(testbed, ssh_config, paths, destination): @param paths: source paths (local) as an iterable @param destination: destination folder name (remote) """ - if destination is not '' and not destination.endswith('/'): + if destination != '' and not destination.endswith('/'): destination = destination + '/' ssh_connect_check(ssh_config, testbed, time_out=None) @@ -317,7 +317,7 @@ def copy_files_from_testbed(testbed, ssh_config, paths, @param destination: destination folder name (local) @param sudo: if path to copy requires root access, should be set to true """ - if destination is not '' and not destination.endswith('/'): + if destination != '' and not destination.endswith('/'): destination = destination + '/' if sudo: -- cgit v1.2.3