From c9dff7e7e913013c2e6b2c8c4f016a8a8a62adba Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Wed, 10 Jul 2024 10:49:13 +0000 Subject: [PATCH 1/2] fix: not showing instances on linux --- src/ansys/mapdl/core/cli/list_instances.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ansys/mapdl/core/cli/list_instances.py b/src/ansys/mapdl/core/cli/list_instances.py index 98fa87dbf1..c6f0dd66ba 100644 --- a/src/ansys/mapdl/core/cli/list_instances.py +++ b/src/ansys/mapdl/core/cli/list_instances.py @@ -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() ) From 51d8d90c1c9cacba0c39a4a8402a760f04c7079e Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Wed, 10 Jul 2024 10:51:59 +0000 Subject: [PATCH 2/2] chore: adding changelog file 3263.fixed.md --- doc/changelog.d/3263.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/3263.fixed.md diff --git a/doc/changelog.d/3263.fixed.md b/doc/changelog.d/3263.fixed.md new file mode 100644 index 0000000000..d365b7f408 --- /dev/null +++ b/doc/changelog.d/3263.fixed.md @@ -0,0 +1 @@ +fix: not showing instances on linux \ No newline at end of file