fix(cli): resolve symlink path before looking up swarms.json in 'box swarm status'
This commit is contained in:
+1
-1
@@ -3149,7 +3149,7 @@ def cmd_swarm_status(args):
|
||||
if not sid.startswith("sw-"):
|
||||
sid = "sw-" + sid
|
||||
# Support prefix matching if exact ID is truncated (e.g. 18 chars)
|
||||
sw_file = Path(__file__).parent.parent / "swarms.json"
|
||||
sw_file = Path(__file__).resolve().parent.parent / "swarms.json"
|
||||
if sw_file.exists():
|
||||
try:
|
||||
import json
|
||||
|
||||
Reference in New Issue
Block a user