Repository: ambari Updated Branches: refs/heads/trunk 7d3eb698d -> 11819ace2
AMBARI-5604. Postgres should be option 4 in setup, not 2. Fix issue. (swagle) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/11819ace Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/11819ace Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/11819ace Branch: refs/heads/trunk Commit: 11819ace2f2b451bbec3e95e4a28ad7c4ab37489 Parents: 7d3eb69 Author: Siddharth Wagle <[email protected]> Authored: Tue Apr 29 15:03:30 2014 -0700 Committer: Siddharth Wagle <[email protected]> Committed: Tue Apr 29 15:03:30 2014 -0700 ---------------------------------------------------------------------- ambari-server/src/main/python/ambari-server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/11819ace/ambari-server/src/main/python/ambari-server.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/python/ambari-server.py b/ambari-server/src/main/python/ambari-server.py index 25ea75c..182bc38 100755 --- a/ambari-server/src/main/python/ambari-server.py +++ b/ambari-server/src/main/python/ambari-server.py @@ -1197,7 +1197,6 @@ def prompt_db_properties(args): if int(database_num) == 1: args.persistence_type = 'local' args.database_index = 0 - DATABASE_INDEX = 0 else: args.persistence_type = 'remote' selected_db_option = int(database_num) @@ -1211,8 +1210,10 @@ def prompt_db_properties(args): else: print_info_msg('Unknown db option, default to embbeded postgres.') args.database_index = 0 + pass pass + DATABASE_INDEX = args.database_index args.dbms = DATABASE_NAMES[args.database_index] if args.persistence_type != 'local':
