Description
Problem Statement:
Ranger install fails if password starts with '-r'
Steps to Reproduce:
1) Deploy cluster with out ranger
2) Try to add ranger with specific password
Ranger DB password = -ran*ger_$admin+
Actual result:
When password contains '-r' at beginning, parsing does not work properly:
2015-11-23 17:19:52,462 [I] --------- Verifying Ranger DB connection --------- 2015-11-23 17:19:52,462 [I] Checking connection SQLException : SQL state: 28P01 org.postgresql.util.PSQLException: FATAL: password authentication failed for user "rangeradmin" ErrorCode: 0 2015-11-23 17:19:52,705 [E] Can't establish connection
Expected Result:
Ranger install should work even with passwords starting with '-r'