Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 89686fed376470b17769b99dd522e9921282ad0b 1 parent 545df61
@rmtemplet rmtemplet authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.