fix #2620: storage API: iSCSI: return active field as integer

If active, the return value was a string: "1" and not an integer.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
This commit is contained in:
Aaron Lauterer
2020-03-02 08:52:05 +01:00
committed by Thomas Lamprecht
parent 93afc379a3
commit 42b988f735

View File

@ -353,7 +353,7 @@ sub status {
$cache->{iscsi_sessions} = iscsi_session_list() if !$cache->{iscsi_sessions};
my $active = defined($cache->{iscsi_sessions}->{$scfg->{target}});
my $active = defined($cache->{iscsi_sessions}->{$scfg->{target}}) + 0;
return (0, 0, 0, $active);
}