agent/SWSCloudNode/reports.py

17 lines
409 B
Python
Raw Normal View History

2016-04-20 03:39:25 +03:00
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