bug fix clustermanager

This commit is contained in:
Usman Nasir
2021-03-30 22:21:50 +05:00
parent d8330f2430
commit 00ee2bc0a4
2 changed files with 5 additions and 1 deletions

View File

@@ -74,17 +74,21 @@ class ClusterManager:
ProcessUtilities.executioner(command)
if type == 'Child':
writeToFile = open(ClusterPath, 'w')
writeToFile.write(config['ClusterConfigFailover'])
writeToFile.close()
command = 'systemctl start mysql'
ProcessUtilities.normalExecutioner(command)
self.config['failoverServerMessage'] = 'Successfully attached to cluster. [200]'
self.PostStatus()
else:
writeToFile = open(ClusterPath, 'w')
writeToFile.write(config['ClusterConfigMaster'])
writeToFile.close()
command = 'galera_new_cluster'
ProcessUtilities.normalExecutioner(command)