eubnara commented on code in PR #3945:
URL: https://github.com/apache/ambari/pull/3945#discussion_r1970775173


##########
ambari-server/src/main/python/ambari_server/dbConfiguration_linux.py:
##########
@@ -598,6 +597,8 @@ class PGConfig(LinuxDBMSConfig):
   )
 
   def __init__(self, options, properties, storage_type):
+    if PGConfig.PG_INITDB_CMD is None:
+      raise FatalException(1, "Cannot find postgresql-setup script.")

Review Comment:
   Move `FatalException` here in order to raise this exception only when 
`__init__` called with `createPGConfig()`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to