--- sm.old/ISCSISR.py   2011-05-19 01:19:36.000000000 +0400 +++ sm/ISCSISR.py       2011-05-19 05:00:19.000000000 +0400 @@ -265,8 +265,15 @@              # Check to see if auto attach was set              if not iscsilib._checkTGT(self.targetIQN):                  try: -                    map = iscsilib.discovery(self.target, self.port, self.chapuser, \ -                                             self.chappassword, targetIQN=self.targetIQN) +                    map=[] +                    for portal in self.targetlist.split(','): +                        if ':' in portal: +                            target,port=portal.split(':') +                        else: +                            target=portal +                            port=DEFAULT_PORT +                        map.extend(iscsilib.discovery(target, port, self.chapuser, \ +                                             self.chappassword, targetIQN=self.targetIQN))                      iqn = ''                      if len(map) == 0:                          self._scan_IQNs()