def iscsi_discover(portal_ip):
 cmd = ('iscsiadm -m discovery -t sendtargets -p %s' % portal_ip)
 output = utils.system_output(cmd, ignore_status=True)
 session = ''
 if ('Invalid' in output):
  logging.debug(output)
 else:
  session = output
 return session

def iscsi_discover ( portal_ip ) : cmd = ( 'iscsiadm -m discovery -t sendtargets -p %s' % portal_ip ) output = utils . system_output ( cmd , ignore_status = True ) session = '' if ( 'Invalid' in output ) : logging . debug ( output ) else : session = output return session
query from iscsi server for available targets .