Usman Nasir
2021-07-17 23:41:22 +05:00
parent 821379d244
commit a28a081adb
2 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ class ClusterManager:
def PostStatus(self, message): def PostStatus(self, message):
try: try:
finalData = {'name': self.config['name'], 'type': self.type, 'message': message, 'token': self.config['token']} finalData = {'name': self.config['name'], 'type': self.type, 'message': message, 'token': self.config['token']}
resp = requests.post(ClusterManager.LogURL, data=json.dumps(finalData), verify=False) resp = requests.post(ClusterManager.LogURL, data=json.dumps(finalData))
if os.path.exists(ProcessUtilities.debugPath): if os.path.exists(ProcessUtilities.debugPath):
logging.writeToFile(resp.text + '[info]') logging.writeToFile(resp.text + '[info]')
except BaseException as msg: except BaseException as msg:
@@ -418,7 +418,7 @@ password=%s""" % (rootdbpassword, rootdbpassword)
def Uptime(self): def Uptime(self):
try: try:
finalData = {'name': self.config['name'], 'token': self.config['token']} finalData = {'name': self.config['name'], 'token': self.config['token']}
resp = requests.post(ClusterManager.UptimeURL, data=json.dumps(finalData), verify=False) resp = requests.post(ClusterManager.UptimeURL, data=json.dumps(finalData))
if os.path.exists(ProcessUtilities.debugPath): if os.path.exists(ProcessUtilities.debugPath):
logging.writeToFile(resp.text + '[Uptime:info]') logging.writeToFile(resp.text + '[Uptime:info]')
except BaseException as msg: except BaseException as msg:

View File

@@ -25,7 +25,7 @@ class UpgradeCyberPanel:
finalData = json.dumps({'ipAddress': self.ipAddress, "UpgradeCyberPanelStatus": message}) finalData = json.dumps({'ipAddress': self.ipAddress, "UpgradeCyberPanelStatus": message})
try: try:
resp = requests.post(UpgradeCyberPanel.LogURL, data=finalData, verify=False, timeout=10) resp = requests.post(UpgradeCyberPanel.LogURL, data=finalData, timeout=10)
except: except:
pass pass