[pve-devel] [manager 1/6] Add parameter storage shared

Wolfgang Link w.link at proxmox.com
Wed Nov 21 17:05:34 CET 2018


So we know in the content call if storage is shared.
This is used by removeImageButton.
---
 PVE/API2Tools.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/API2Tools.pm b/PVE/API2Tools.pm
index 7b4c425a..7527b42b 100644
--- a/PVE/API2Tools.pm
+++ b/PVE/API2Tools.pm
@@ -120,6 +120,7 @@ sub extract_storage_stats {
 	node => $node, 
 	type => 'storage', 
 	status => 'unknown',
+	shared => $scfg->{shared} || 0,
     }; 
 
     if (my $d = $rrd->{"pve2-storage/$node/$storeid"}) {
-- 
2.11.0





More information about the pve-devel mailing list