Skip to content

Commit

Permalink
strip comment lines off iscsi node data
Browse files Browse the repository at this point in the history
Now checks like foo.empty? on the map make more sense.
  • Loading branch information
wfeldt committed Mar 1, 2019
1 parent 14e6108 commit acd46a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/IscsiClientLib.rb
Expand Up @@ -220,7 +220,7 @@ def nodeInfoToMap(stdout)
key, val = row.split("=")

key = key.to_s.strip
retval[key] = val.to_s.strip if !key.empty?
retval[key] = val.to_s.strip if !key.empty? && !key.match?(/^#/)
end

retval
Expand Down

0 comments on commit acd46a0

Please sign in to comment.