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 diff --git a/src/ansys/mapdl/core/cli/list_instances.py b/src/ansys/mapdl/core/cli/list_instances.py index 6604cc2563..11a3dba169 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() )