Fix passing flag into container get command.

This commit is contained in:
Vladimir Domnich 2022-07-12 09:46:30 +04:00
parent 7473d7fb74
commit ff2ece942e

View file

@ -104,7 +104,7 @@ def get_container(wallet: str, cid: str, flag: str = '--json') -> dict:
""" """
cmd = ( cmd = (
f'{NEOFS_CLI_EXEC} --rpc-endpoint {NEOFS_ENDPOINT} --wallet {wallet} ' f'{NEOFS_CLI_EXEC} --rpc-endpoint {NEOFS_ENDPOINT} --wallet {wallet} '
f'--config {WALLET_CONFIG} --cid {cid} container get --json' f'--config {WALLET_CONFIG} --cid {cid} container get {flag}'
) )
output = _cmd_run(cmd) output = _cmd_run(cmd)
if flag != '--json': if flag != '--json':