add migrate script

This commit is contained in:
zema1 committed 2017-12-04 15:29:55 +08:00
1 parent 25ee4761fa
commit cc857e65d9
4 files changed
+194 -6

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ import xmlrpclib
if __name__ == "__main__":
try:
server = xmlrpclib.Server('http://localhost:9005/RPC2')
server = xmlrpclib.Server("http://localhost:9005/RPC2")
info = server.supervisor.getAllProcessInfo()
error_states = list(filter(lambda x: x["state"] != 20, info))
exit(len(error_states))