--- lib/PXElator/amt.pm 2010/01/23 18:05:37 481 +++ lib/PXElator/amt.pm 2010/01/23 18:31:14 482 @@ -12,7 +12,7 @@ use html; use ping; -use CouchDB; +use store; use Carp qw/confess/; sub ip { @@ -36,7 +36,7 @@ sub power_state { my $state = eval { Intel::AMT::RemoteControl::SystemPowerState }; - CouchDB::audit('SystemPowerState', { ip => $ENV{AMT_HOST}, SystemPowerState => $state }); + store::audit('SystemPowerState', { ip => $ENV{AMT_HOST}, SystemPowerState => $state }); return $state; } @@ -54,7 +54,7 @@ warn "ERROR $@"; } else { $amt->{ip} = $ENV{AMT_HOST}; - CouchDB::audit('log', $amt ); + store::audit('log', $amt ); } $amt; } @@ -67,7 +67,7 @@ warn "ERROR $@"; } else { $amt->{ip} = $ENV{AMT_HOST}; - CouchDB::audit('log', $amt ); + store::audit('log', $amt ); } $amt; } @@ -76,7 +76,7 @@ ip shift; my $command = shift; eval { Intel::AMT::RemoteControl::run( $command ) }; - CouchDB::audit( $command, { ip => $ENV{AMT_HOST}, error => $@ } ); + store::audit( $command, { ip => $ENV{AMT_HOST}, error => $@ } ); warn "ERROR $@" if $@; }