Commits

Kaspar Schiess committed c7d333d

Fixes iteration over all targets

  • Participants
  • Parent commits 7cc440e

Comments (0)

Files changed (1)

   subcommand 'list', 'Lists all targets with the corresponding attribtues' do
     def execute
       shares = ISCSI::Context.new(true)
-      shares.targets do |target|
+      shares.targets.each do |target|
         puts target.name
         p target.groups.map(&:name)
       end