Browse files

Fixed assumption in database role password replacement

This patch fixes an issue where the password caching system for
the databases assumes the camp being created or updated uses
the same database as the main camp database.  I adjusted this
to pull the db_type from the configuration for the camp
being made.
  • Loading branch information...
1 parent 545df61 commit 89686fed376470b17769b99dd522e9921282ad0b @rmtemplet committed Sep 30, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Camp/Master.pm
View
3 lib/Camp/Master.pm
@@ -723,7 +723,8 @@ sub camp_user_tmpdir {
sub _camp_db_type_dispatcher {
my $name = shift;
- my $type = camp_db_type();
+ my $config = config_hash();
+ my $type = $config->{db_type};
my $sub = __PACKAGE__->can( "${name}_$type" );
die "No function $name for database type $type!\n" unless $sub;
return $sub;

0 comments on commit 89686fe

Please sign in to comment.