Skip to content

Commit 3f97d11

Browse files
committed
Include project names in project listing
1 parent 146e409 commit 3f97d11

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

caso/_cmd/projects.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,14 @@ def main():
8181
log.setup(cfg.CONF, "caso")
8282
manager = caso.manager.Manager()
8383
for prj, vo in manager.projects_and_vos():
84-
print(f"'{prj} mapped to VO '{vo}'")
84+
prj_name = None
85+
try:
86+
prj_name = manager.extractor_manager.keystone.projects.get(prj).name
87+
except Exception as e:
88+
print(f"ERROR: Could not get project {prj}")
89+
print(f"ERROR: {e}")
90+
91+
print(f"'{prj} ({prj_name}) mapped to VO '{vo}'")
8592

8693

8794
if __name__ == "__main__":

0 commit comments

Comments
 (0)