]> git.proxmox.com Git - pmg-api.git/blobdiff - bin/pmgsh
pmgsh: use new PMG::RESTEnvironment
[pmg-api.git] / bin / pmgsh
index 979e83f2b1c2c0fcfbfd351c3a8c9631e22d37aa..e37ff0959971947541af5efc9c58a7cb289dc4b8 100755 (executable)
--- a/bin/pmgsh
+++ b/bin/pmgsh
@@ -11,7 +11,8 @@ use Text::ParseWords;
 use PVE::JSONSchema;
 use PVE::SafeSyslog;
 use PVE::INotify;
-use PVE::RESTEnvironment;
+
+use PMG::RESTEnvironment;
 
 use PMG::Cluster;
 use PMG::API2;
@@ -19,7 +20,7 @@ use JSON;
 
 PVE::INotify::inotify_init();
 
-my $rpcenv = PVE::RESTEnvironment->init('cli');
+my $rpcenv = PMG::RESTEnvironment->init('cli');
 
 $rpcenv->set_language($ENV{LANG});
 $rpcenv->set_user('root@pam');