Skip to content

Commit

Permalink
[artemiscloud#79] readinessProbe.sh-script fails
Browse files Browse the repository at this point in the history
Fix the readinessProbe.sh-script issue.
  • Loading branch information
aboucham committed Oct 9, 2023
1 parent 5fefca8 commit 5882841
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/activemq-artemis-launch/added/readinessProbe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ for tcp_file_path in ["/proc/net/tcp", "/proc/net/tcp6"]:
try:
tcp_file = open(tcp_file_path, "r")
lines = tcp_file.readlines()
header = lines.pop(0)
tcp_lines.extend(lines)
if len(lines) > 0:
header = lines.pop(0)
tcp_lines.extend(lines)
tcp_file.close()
except IOError:
print "Could not open {}".format(tcp_file_path)
Expand Down

0 comments on commit 5882841

Please sign in to comment.