[#184]: neofs verbs divided from neofs.py; HEAD responses are now

proccessed as JSON

Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
anastasia prasolova 2022-03-15 14:58:59 +03:00 committed by Anastasia Prasolova
parent e5d6662905
commit 7a21456201
43 changed files with 667 additions and 494 deletions

View file

@ -19,6 +19,7 @@ def _cmd_run(cmd, timeout=30):
in case of failure returns error message.
"""
try:
logger.info(f"Executing command: {cmd}")
compl_proc = subprocess.run(cmd, check=True, universal_newlines=True,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, timeout=timeout,
shell=True)