(conf)
| 163 | print("execute cmd[{}] success".format(cmd)) |
| 164 | |
| 165 | def GetZKCluster(conf): |
| 166 | if "zookeeper" not in conf or "address_arr" not in conf["zookeeper"]: |
| 167 | return "" |
| 168 | zk_cluster_arr = [] |
| 169 | for item in conf["zookeeper"]["address_arr"]: |
| 170 | zk_cluster_arr.append(item["address"]) |
| 171 | return ",".join(zk_cluster_arr), conf["zk_root_path"] |
| 172 | |
| 173 | |
| 174 | def DeployNameserver(zk_cluster, zk_root_path, ns_conf, teardown): |