Skip to content

Commit

Permalink
use LC_ALL over LANG everywhere
Browse files Browse the repository at this point in the history
LANG was causing issues on CentOS7.3 now as well
  • Loading branch information
tpokorra committed Dec 14, 2016
1 parent bea63cf commit 7dfde6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/DockerContainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def executeInContainer(self, command):
self.containername))
# wait until ssh server is running
for x in range(0, 24):
result = self.shell.executeshell('ssh -f -o "StrictHostKeyChecking no" -o Port=' + self.containerPort + ' -i ' + self.SSHContainerPath + "/container_rsa root@" + self.containerIP + " \"export LANG=C; (" + command + ") 2>&1 && echo \$?\"")
result = self.shell.executeshell('ssh -f -o "StrictHostKeyChecking no" -o Port=' + self.containerPort + ' -i ' + self.SSHContainerPath + "/container_rsa root@" + self.containerIP + " \"export LC_ALL=C; (" + command + ") 2>&1 && echo \$?\"")
if result:
return self.logger.getLastLine() == "0"
if x < 5:
Expand Down
2 changes: 1 addition & 1 deletion lib/LXCContainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def executeInContainer(self, command):
self.containername))
# wait until ssh server is running
for x in range(0, 24):
result = self.shell.executeshell('ssh -f -o "StrictHostKeyChecking no" -o Port=' + self.containerPort + ' -i ' + self.SSHContainerPath + "/container_rsa root@" + self.containerIP + " \"export LANG=C; (" + command + ") 2>&1 && echo \$?\"")
result = self.shell.executeshell('ssh -f -o "StrictHostKeyChecking no" -o Port=' + self.containerPort + ' -i ' + self.SSHContainerPath + "/container_rsa root@" + self.containerIP + " \"export LC_ALL=C; (" + command + ") 2>&1 && echo \$?\"")
if result:
return self.logger.getLastLine() == "0"
if x < 5:
Expand Down

0 comments on commit 7dfde6a

Please sign in to comment.