Added http hostname as a header to all http calls

This commit is contained in:
Yaroslava Lukoyanova 2023-07-24 10:21:11 +03:00 committed by ylukoyan
parent 2240be09d2
commit b856e82008
4 changed files with 38 additions and 13 deletions

View file

@ -170,6 +170,12 @@ class StorageNode(NodeBase):
def get_data_directory(self) -> str:
return self.host.get_data_directory(self.name)
def get_http_hostname(self) -> str:
return self._get_attribute(ConfigAttributes.HTTP_HOSTNAME)
def get_s3_hostname(self) -> str:
return self._get_attribute(ConfigAttributes.S3_HOSTNAME)
def delete_blobovnicza(self):
self.host.delete_blobovnicza(self.name)