Skip to content

Commit 2520cb3

Browse files
committed
fix: show installation bug fix (column name changes)
1 parent e99ffd0 commit 2520cb3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/DIRAC/FrameworkSystem/Client/SystemAdministratorClientCLI.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def do_show(self, args):
198198
for component in components:
199199
record = []
200200
if rDict[compType][system][component]["Installed"]:
201-
module = str(rDict[compType][system][component]["Module"])
201+
module = str(rDict[compType][system][component]["DIRACModule"])
202202
record += [system, component, module, compType.lower()[:-1]]
203203
if rDict[compType][system][component]["Setup"]:
204204
record += ["Setup"]
@@ -213,7 +213,7 @@ def do_show(self, args):
213213
record += [str(rDict[compType][system][component]["PID"])]
214214
records.append(record)
215215
printTable(fields, records)
216-
elif option == "database" or option == "databases":
216+
elif option in ("database", "databases"):
217217
client = SystemAdministratorClient(self.host, self.port)
218218
if not gComponentInstaller.mysqlPassword:
219219
gComponentInstaller.mysqlPassword = "LocalConfig"
@@ -457,9 +457,9 @@ def getInstallations(self, argss):
457457
elif arg == "-t":
458458
key = "Component.Type"
459459
elif arg == "-m":
460-
key = "Component.Module"
460+
key = "Component.DIRACModule"
461461
elif arg == "-s":
462-
key = "Component.System"
462+
key = "Component.DIRACSystem"
463463
elif arg == "-h":
464464
key = "Host.HostName"
465465
elif arg == "-n":

0 commit comments

Comments
 (0)