forked from ungleich-public/cdist
no == true needed
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
534ccc86ab
commit
5f2f8e2bd2
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class Remote(object):
|
||||||
self.rmdir(destination)
|
self.rmdir(destination)
|
||||||
command = self._copy.split()
|
command = self._copy.split()
|
||||||
# support rsync by appending a "/" to the source if it's a directory
|
# 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])
|
command.extend(["-r", source + "/", self.target_host + ":" + destination])
|
||||||
else:
|
else:
|
||||||
command.extend(["-r", source, self.target_host + ":" + destination])
|
command.extend(["-r", source, self.target_host + ":" + destination])
|
||||||
|
|
Loading…
Reference in a new issue