Switch ssh to user alex.

This commit is contained in:
Vladimir Domnich 2022-07-28 15:03:28 +03:00
parent 2399abe0ee
commit aef764b427
2 changed files with 2 additions and 2 deletions

View file

@ -117,7 +117,7 @@ setup-for-sbercloud:
echo NEOFS_ADM_EXEC="neofs-adm" >> .env
echo NEOFS_ADM_CONFIG_PATH="/.setup/config.yaml" >> .env
# env: SSH connection to storage node host and bin directory on that host
echo STORAGE_NODE_SSH_USER="root" >> .env
echo STORAGE_NODE_SSH_USER="alex" >> .env
echo STORAGE_NODE_SSH_PRIVATE_KEY_PATH="/.setup/id_rsa" >> .env
echo STORAGE_NODE_BIN_PATH="/usr/bin" >> .env
# env: s3 gateway public key

View file

@ -152,7 +152,7 @@ def decode_common_fields(data: dict):
header["payloadHash"] = json_reencode(header["payloadHash"]["sum"])
header["version"] = f"{header['version']['major']}{header['version']['minor']}"
# Homomorphic hash is optional and its calculation might be disabled in trusted network
if "homomorphicHash" in header:
if header.get("homomorphicHash"):
header["homomorphicHash"] = json_reencode(header["homomorphicHash"]["sum"])
return data