]> git.proxmox.com Git - librados2-perl.git/commitdiff
initialize PVE::RPCEnvironment in test.pl
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 21 Jan 2014 09:33:57 +0000 (10:33 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 21 Jan 2014 09:33:57 +0000 (10:33 +0100)
test.pl

diff --git a/test.pl b/test.pl
index eaf3c88018d8ea08bcf9b30a2d4a89383969f25f..98c3da5032ca01989e5a4504a874e7b1e750a05c 100755 (executable)
--- a/test.pl
+++ b/test.pl
@@ -4,11 +4,14 @@ use lib '.';
 use strict;
 use warnings;
 use JSON;
+use PVE::RPCEnvironment;
 
 use Data::Dumper;
 
 use PVE::RADOS;
 
+my $rpcenv = PVE::RPCEnvironment->init('cli');
+
 my $rados = PVE::RADOS::new();
 
 my $res = $rados->mon_command({ prefix => 'get_command_descriptions'});