Skip to content

Commit

Permalink
Fix bug on docker detection #484 #488 #427
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jan 25, 2024
1 parent 34fc4c1 commit 2832e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jtop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
__copyright__ = "(c) 2024, Raffaello Bonghi"
# Version package
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#choosing-a-versioning-scheme
__version__ = "4.2.5"
__version__ = "4.2.6"
# EOF
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def check_mountinfo():
with open('/proc/self/mountinfo', 'r') as file:
line = file.readline().strip()
while line:
if '/docker/containers/' or '/docker/volumes/buildx_buildkit_builder' in line:
if '/docker/containers/' in line or '/docker/volumes/buildx_buildkit_builder' in line:
return True
line = file.readline().strip()
return False
Expand Down

0 comments on commit 2832e37

Please sign in to comment.