Noisy rsync (#473)

Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
This commit is contained in:
Christine M
2020-08-12 15:23:03 -05:00
committed by GitHub
parent 2b8b8408bd
commit c211d247a7
3 changed files with 22 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ class NodeManager:
return {
"ignores": ignores,
"verbose": getattr(self.config.option, "verbose", False),
"verbose": getattr(self.config.option, "verbose", 0),
}
def rsync(self, gateway, source, notify=None, verbose=False, ignores=None):
@@ -181,7 +181,7 @@ class HostRSync(execnet.RSync):
super().add_target(gateway, remotepath, finishedcallback=finished, delete=True)
def _report_send_file(self, gateway, modified_rel_path):
if self._verbose:
if self._verbose > 0:
path = os.path.basename(self._sourcedir) + "/" + modified_rel_path
remotepath = gateway.spec.chdir
print("{}:{} <= {}".format(gateway.spec, remotepath, path))