cephadm: do not log commands sent to "call" function

They could potentially log sensitive info such as registry
login passwords

Signed-off-by: Adam King <adking@redhat.com>
This commit is contained in:
Adam King 2021-10-14 14:56:51 -04:00
parent c19250ce3c
commit 3205a835f6

View File

@ -1413,8 +1413,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: