16 lines
409 B
Python
16 lines
409 B
Python
from SWSCloudNode.settings import settings
|
|
|
|
|
|
class Report:
|
|
# def __init__(self, auth):
|
|
|
|
def container_info(self, data):
|
|
"""
|
|
Send container info to server
|
|
:param data:
|
|
:return:
|
|
"""
|
|
response = TCPClient().request(Request().build("report_container_info", config.auth, data))
|
|
if response['status'] == 0:
|
|
return True
|
|
return False
|