aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: