Skip to content

Commit

Permalink
Newline in container command corrupts display / hides container #2733
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Apr 22, 2024
1 parent 4fbcd94 commit 01097af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions glances/plugins/containers/engines/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def generate_stats(self, container):
stats['network_rx'] = stats['network'].get('rx') // stats['network'].get('time_since_update')
stats['network_tx'] = stats['network'].get('tx') // stats['network'].get('time_since_update')
stats['uptime'] = pretty_date(parser.parse(started_at).astimezone(tz.tzlocal()).replace(tzinfo=None))
# Manage special chars in command (see isse#2733)
stats['command'] = replace_special_chars(' '.join(stats['command']))
else:
stats['io'] = {}
Expand Down

0 comments on commit 01097af

Please sign in to comment.