Hi
*Issue:*
Two reasons:
1) In Resource group menu, the check for server connected or not is missing.
2) When server is disconnected, server type is always set to 'pg' which is
wrong and thus function always returns true.
*Solution:*
If server is disconnected, we should check server type based on its
maintenance db.
If maintenance db is 'edb' its ppas server, otherwise 'pg'.
Please review attached patch.
Thanks,
Surinder Kumar