Kubernetes rsync verbosity fixed (#11716)

This commit is contained in:
Gekho457 2020-10-30 17:03:42 -04:00 committed by GitHub
parent 3c109b45aa
commit 8816d34541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,9 +193,10 @@ class KubernetesCommandRunner(CommandRunnerInterface):
target = "/root" + target[1:]
try:
flags = "-aqz" if is_rsync_silent() else "-avz"
self.process_runner.check_call([
KUBECTL_RSYNC,
"-avz",
flags,
source,
"{}@{}:{}".format(self.node_id, self.namespace, target),
])
@ -217,9 +218,10 @@ class KubernetesCommandRunner(CommandRunnerInterface):
target = "/root" + target[1:]
try:
flags = "-aqz" if is_rsync_silent() else "-avz"
self.process_runner.check_call([
KUBECTL_RSYNC,
"-avz",
flags,
"{}@{}:{}".format(self.node_id, self.namespace, source),
target,
])