From ec4a3f84fc62a282412fe10126dc4e3d1e4a1a4c Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 25 May 2014 08:49:40 +0000 Subject: [PATCH] remove dependency on mongodb --- Makefile.PL | 2 +- lib/PXElator/store.pm | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index e77c8fd..8fe6216 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -19,7 +19,7 @@ requires 'Data::Structure::Util'; requires 'XML::Simple'; requires 'File::Slurp'; requires 'YAML'; -requires 'MongoDB'; +#requires 'MongoDB'; features( 'ssh' => [ diff --git a/lib/PXElator/store.pm b/lib/PXElator/store.pm index 6624c64..159484f 100644 --- a/lib/PXElator/store.pm +++ b/lib/PXElator/store.pm @@ -9,14 +9,14 @@ use Data::Dump qw(dump); our $audit; -eval { - require MongoDB; - - my $conn = MongoDB::Connection->new; - my $db = $conn->get_database( 'pxelator' ); - $audit = $db->get_collection( 'audit' ); -}; -warn "ERROR: no store for audit: $@" if $@; +#eval { +# require MongoDB; +# +# my $conn = MongoDB::Connection->new; +# my $db = $conn->get_database( 'pxelator' ); +# $audit = $db->get_collection( 'audit' ); +#}; +#warn "ERROR: no store for audit: $@" if $@; sub audit { -- 2.20.1