Skip to content

Commit

Permalink
feat: no need to look up system instances
Browse files Browse the repository at this point in the history
  • Loading branch information
atsareg committed Jun 12, 2024
1 parent 1cad666 commit 288e6b7
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -649,12 +649,6 @@ def do_install(self, args):
return
system = result["Value"][database]["System"]
dbType = result["Value"][database]["Type"]
setup = CSGlobals.getSetup()
instance = gConfig.getValue(f"/DIRAC/Setups/{setup}/{system}", "")
if not instance:
self._errMsg(f"No instance defined for system {system}")
self._errMsg(f"\tAdd new instance with 'add instance {system} <instance_name>'")
return

if dbType == "MySQL":
if not gComponentInstaller.mysqlPassword:
Expand Down Expand Up @@ -1083,7 +1077,7 @@ def do_update(self, args):
else:
gLogger.notice("Software successfully updated.")
gLogger.notice("You should restart the services to use the new software version.")
gLogger.notice("Think of updating /Operations/<vo>/<setup>/Pilot/Versions section in the CS")
gLogger.notice("Think of updating /Operations/<vo>/Pilot/Versions section in the CS")

def do_revert(self, args):
"""
Expand Down

0 comments on commit 288e6b7

Please sign in to comment.