[pve-devel] r5918 - pve-storage/pve2/PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Fri May 6 13:23:48 CEST 2011


Author: dietmar
Date: 2011-05-06 13:23:48 +0200 (Fri, 06 May 2011)
New Revision: 5918

Modified:
   pve-storage/pve2/PVE/Storage.pm
Log:
use content_hash_to_string


Modified: pve-storage/pve2/PVE/Storage.pm
===================================================================
--- pve-storage/pve2/PVE/Storage.pm	2011-05-06 11:07:20 UTC (rev 5917)
+++ pve-storage/pve2/PVE/Storage.pm	2011-05-06 11:23:48 UTC (rev 5918)
@@ -613,7 +613,7 @@
     if ($ct eq 'bool') {
 	return $v ? "\t$k\n" : '';
     } elsif ($ct eq 'content') {
-	my $clist = join (',', keys %$v);
+	my $clist = content_hash_to_string($v);
 	if ($clist) {
 	    return "\t$k $clist\n";
 	} else {
@@ -1974,6 +1974,7 @@
 	    avail => 0, 
 	    used => 0, 
 	    disable => defined ($ids->{$storeid}->{disable}),
+	    content => content_hash_to_string($ids->{$storeid}->{content}),
 	    active => 0,
 	};
 




More information about the pve-devel mailing list