From 5f2f8e2bd2efd404d17004590a5ba3030bd9c86d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 9 Mar 2012 23:14:15 +0100 Subject: [PATCH] no == true needed Signed-off-by: Nico Schottelius --- lib/cdist/exec/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cdist/exec/remote.py b/lib/cdist/exec/remote.py index 2e7d9d10..11b8c78e 100644 --- a/lib/cdist/exec/remote.py +++ b/lib/cdist/exec/remote.py @@ -78,7 +78,7 @@ class Remote(object): self.rmdir(destination) command = self._copy.split() # support rsync by appending a "/" to the source if it's a directory - if os.path.isdir(source) == True: + if os.path.isdir(source): command.extend(["-r", source + "/", self.target_host + ":" + destination]) else: command.extend(["-r", source, self.target_host + ":" + destination])