]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: do not log commands sent to "call" function
authorAdam King <adking@redhat.com>
Thu, 14 Oct 2021 18:56:51 +0000 (14:56 -0400)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 2 Nov 2021 09:01:23 +0000 (10:01 +0100)
They could potentially log sensitive info such as registry
login passwords

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 3205a835f6bfa1cea4415dc8a95888ac7dade181)

src/cephadm/cephadm

index 13b19a57308b0c9581a535f58b9fb0a6cb928b63..866babf92b7c26cfaec868bbc988e61929c6026c 100755 (executable)
@@ -1415,8 +1415,6 @@ def call(ctx: CephadmContext,
         prefix += ': '
     timeout = timeout or ctx.timeout
 
-    logger.debug('Running command: %s' % ' '.join(command))
-
     async def tee(reader: asyncio.StreamReader) -> str:
         collected = StringIO()
         async for line in reader: