aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2021-07-15 20:36:55 +0200
committerDimitri Staessens <dimitri@ouroboros.rocks>2021-07-15 20:36:55 +0200
commit4db58e164aa6814e4b1cc4e8d74729066f914f55 (patch)
treed0f44b294bbd848fa4ed0d8c3cec1e616dbf8463
parent63571bf5567ef22c88d1c29dcfe41f263db8e063 (diff)
downloadrumba-4db58e164aa6814e4b1cc4e8d74729066f914f55.tar.gz
rumba-4db58e164aa6814e4b1cc4e8d74729066f914f55.zip
ssh_support: Fix wrong comparison operators
-rw-r--r--rumba/ssh_support.py4
1 files 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: