Commit d4465b9d authored by Michael Wimmer's avatar Michael Wimmer
Browse files

replace wrong ip address in json file

parent 539ec2a8
......@@ -345,6 +345,19 @@ class IPyCluster:
raise RuntimeError("Failed to copy the client's json "
"file to the local machine.")
# for some reason, the current (May 2015) cluster installation
# has the local (10.0.0.1) IP address in the json file.
# This needs to be replaced by the external IP
rcode = subprocess.call(["sed", "-i",
"'s/10\.0\.0\.1/132\.229\.226\.3/g",
self.profiledir +
"/ipcontroller-client.json"])
if rcode:
raise RuntimeError("Failed to write proper IP address to "
"json file " + self.profiledir +
"/ipcontroller-client.json .")
self._client = Client(self.profiledir +
"/ipcontroller-client.json")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment