X-Git-Url: http://git.rot13.org/?p=pxelator;a=blobdiff_plain;f=lib%2FPXElator%2Fssh.pm;h=608be377072bb93d1c2bdb322cb82c3f9ddbe116;hp=7895593f5faf82a92420b265e91c71b1a98328b7;hb=3a8640fdb4ce749773549468bbf884d5fb2d77e9;hpb=dd8d45f2ccf3d70ce5c035d5dfd74c73fa3eaf03 diff --git a/lib/PXElator/ssh.pm b/lib/PXElator/ssh.pm index 7895593..608be37 100644 --- a/lib/PXElator/ssh.pm +++ b/lib/PXElator/ssh.pm @@ -7,7 +7,7 @@ use Net::OpenSSH; use English; use Data::Dump qw/dump/; use client; -use CouchDB; +use store; my $id = 3; my $id_rsa = '/root/.ssh/id_rsa'; @@ -70,7 +70,7 @@ sub shell { my ($out,$err) = $ssh->capture2( $command ) or die "$command ", $ssh->error; warn "$out\n$err"; - CouchDB::audit( $ip, $command, { ip => $ip, command => $command, out => $out, err => $err } ); + store::audit( $ip, $command, { ip => $ip, command => $command, out => $out, err => $err } ); $html .= qq|root\@$ip:# $command
$out
|; $html .= qq|
$err
| if $err;