Fix {#PVE_STOR_STATUS} macro

This commit is contained in:
Daniel Berteaud 2018-06-05 00:11:34 +02:00
parent ffe8c6b0a5
commit 159247fb00

View File

@ -51,7 +51,7 @@ if ($what eq 'nodes'){
push @{$json->{data}}, {
'{#PVE_STOR_ID}' => $store->{storage},
'{#PVE_STOR_TYPE}' => $store->{type},
'{#PVE_STOR_STATUS}' => ($store->{disabled} || 0),
'{#PVE_STOR_STATUS}' => (($store->{disable}) ? 0 : 1),
'{#PVE_STOR_SHARED}' => ($store->{shared} || 0),
'{#PVE_STOR_CONTENT}' => $store->{content}
};