Skip to content

Commit

Permalink
SCRIPTS: Add missing db_type replacement on Instance Factory call
Browse files Browse the repository at this point in the history
  • Loading branch information
icot committed Dec 8, 2016
1 parent 59fe76a commit 36aaa1d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions scripts/dbod-backup
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ use Data::Dumper;

my $job = DBOD::Job->new_with_options();

use DBOD qw ($ERROR $OK);
use DBOD qw ($ERROR $OK $db_type);
use DBOD::Instance;

sub body {

$job->log->debug('Storting' . $job->entity() . '/' .
$job->log->debug('Performing backup on ' . $job->entity() . '/' .
$job->metadata->{db_type});

my $instance = DBOD::Instance::Factory->create(
$job->metadata->{db_type},
$db_type->{$job->metadata->{db_type}},
instance => $job->entity(),
metadata => $job->metadata(),
config => $job->config());
Expand Down
6 changes: 3 additions & 3 deletions scripts/dbod-start
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ use Data::Dumper;

my $job = DBOD::Job->new_with_options();

use DBOD qw ($ERROR $OK);
use DBOD qw ($ERROR $OK $db_type);
use DBOD::Instance;

sub body {

$job->log->debug('Storting' . $job->entity() . '/' .
$job->log->debug('Starting ' . $job->entity() . '/' .
$job->metadata->{db_type});

my $instance = DBOD::Instance::Factory->create(
$job->metadata->{db_type},
$db_type->{$job->metadata->{db_type}},
instance => $job->entity(),
metadata => $job->metadata(),
config => $job->config());
Expand Down
6 changes: 3 additions & 3 deletions scripts/dbod-stop
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ use Data::Dumper;

my $job = DBOD::Job->new_with_options();

use DBOD qw ($ERROR $OK);
use DBOD qw ($ERROR $OK $db_type);
use DBOD::Instance;

sub body {

$job->log->debug('Stopping' . $job->entity() . '/' .
$job->log->debug('Stopping ' . $job->entity() . '/' .
$job->metadata->{db_type});

my $instance = DBOD::Instance::Factory->create(
$job->metadata->{db_type},
$db_type->{$job->metadata->{db_type}},
instance => $job->entity(),
metadata => $job->metadata(),
config => $job->config());
Expand Down

0 comments on commit 36aaa1d

Please sign in to comment.