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:
committed by
Thomas Lamprecht
parent
93afc379a3
commit
42b988f735
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user