Skip to content

Commit

Permalink
Merge pull request #15 from gabi2/Code-11-SP2
Browse files Browse the repository at this point in the history
fix detection of persistent portal (bnc#856494)
  • Loading branch information
gabi2 committed Jan 23, 2014
2 parents 860ce97 + f5d8544 commit b291661
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package/yast2-iscsi-client.changes
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 16 14:11:11 CET 2014 - gs@suse.de

- fix detection of persistent portal (bnc#856494)

-------------------------------------------------------------------
Wed Mar 21 11:48:21 CET 2012 - fehr@suse.de

Expand Down
4 changes: 3 additions & 1 deletion src/IscsiClientLib.ycp
Expand Up @@ -262,7 +262,9 @@ global list<string> ScanDiscovered( list<string> data )
{
if( search(row,"Current Portal:")!=nil )
portal = splitstring(row, " ")[2]:"";
else if( search(row,"Persistent Portal:")==nil )
else if( search(row,"Persistent Portal:")!=nil )
portal = splitstring(row, " ")[2]:"";
else
portal = splitstring(row, " ")[1]:"";
integer pos = search(portal,",");
if( pos != nil )
Expand Down

0 comments on commit b291661

Please sign in to comment.