On 3/2/20 8:52 AM, Aaron Lauterer wrote: > If active, the return value was a string: "1" and not an integer. > > Signed-off-by: Aaron Lauterer <a.laute...@proxmox.com> > --- > PVE/Storage/ISCSIPlugin.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/PVE/Storage/ISCSIPlugin.pm b/PVE/Storage/ISCSIPlugin.pm > index 131ffa0..bb27c89 100644 > --- a/PVE/Storage/ISCSIPlugin.pm > +++ b/PVE/Storage/ISCSIPlugin.pm > @@ -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); > } >
applied both patches, thanks! _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel