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.
(cherry picked from commit d5bb905)

downstream: ENTMQBR-8476
  • Loading branch information
aboucham authored and brusdev committed Nov 28, 2023
1 parent 5e487a7 commit 7cc8110
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 7cc8110

Please sign in to comment.