Skip to content

Commit

Permalink
fix: not showing instances on linux (#3263)
Browse files Browse the repository at this point in the history
* fix: not showing instances on linux

* chore: adding changelog file 3263.fixed.md

---------

Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
germa89 and pyansys-ci-bot authored Jul 12, 2024
1 parent d99d916 commit bc2d257
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changelog.d/3263.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: not showing instances on linux
6 changes: 5 additions & 1 deletion src/ansys/mapdl/core/cli/list_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ def list_instances(instances, long, cmd, location):
mapdl_instances = []

def is_valid_process(proc):
valid_status = proc.status() in [psutil.STATUS_RUNNING, psutil.STATUS_IDLE]
valid_status = proc.status() in [
psutil.STATUS_RUNNING,
psutil.STATUS_IDLE,
psutil.STATUS_SLEEPING,
]
valid_ansys_process = ("ansys" in proc.name().lower()) or (
"mapdl" in proc.name().lower()
)
Expand Down

0 comments on commit bc2d257

Please sign in to comment.