[pve-devel] r5093 - pve-storage/pve2
svn-commits at proxmox.com
svn-commits at proxmox.com
Mon Sep 6 09:49:53 CEST 2010
Author: dietmar
Date: 2010-09-06 07:49:53 +0000 (Mon, 06 Sep 2010)
New Revision: 5093
Modified:
pve-storage/pve2/pvesm
Log:
cleanup
Modified: pve-storage/pve2/pvesm
===================================================================
--- pve-storage/pve2/pvesm 2010-09-03 12:19:55 UTC (rev 5092)
+++ pve-storage/pve2/pvesm 2010-09-06 07:49:53 UTC (rev 5093)
@@ -190,23 +190,25 @@
}
};
+my $hostname = read_file('hostname');
+
my $cmddef = {
add => [ "PVE::API2::Storage::Config", 'create', ['storage'] ],
set => [ "PVE::API2::Storage::Config", 'update', ['storage'] ],
remove => [ "PVE::API2::Storage::Config", 'delete', ['storage'] ],
status => [ "PVE::API2::Storage::Status", 'index', [],
- { node => read_file('hostname') }, $print_status ],
+ { node => $hostname }, $print_status ],
list => [ "PVE::API2::Storage::Content", 'index', ['storage'],
- { node => read_file('hostname') }, $print_content ],
+ { node => $hostname }, $print_content ],
alloc => [ "PVE::API2::Storage::Content", 'create', ['storage', 'vmid', 'filename', 'size'],
- { node => read_file('hostname') }, sub {
+ { node => $hostname }, sub {
my $volid = shift;
print "sucessfuly created '$volid'\n";
}],
free => [ "PVE::API2::Storage::Content", 'delete', ['volume'],
- { node => read_file('hostname') } ],
+ { node => $hostname } ],
scan => [ "PVE::API2::Storage::Scan", 'scan', ['method', 'server'],
- { node => read_file('hostname') }, sub {
+ { node => $hostname }, sub {
my $res = shift;
my $maxlen = 0;
More information about the pve-devel
mailing list