Beispiel #1
0
 def lookup(self, name):
     discovered_qns = utils.get_discovered_iscsi_qns()
     iqn_exists = any(qn["iqn"] == name for qn in discovered_qns)
     if iqn_exists:
         return utils.get_iqn_info(name)
     else:
         raise NotFoundError("GINISCSI020E")
Beispiel #2
0
 def lookup(self, name):
     discovered_qns = utils.get_discovered_iscsi_qns()
     iqn_exists = any(qn["iqn"] == name for qn in discovered_qns)
     if iqn_exists:
         return utils.get_iqn_info(name)
     else:
         raise NotFoundError("GINISCSI020E")
Beispiel #3
0
 def get_list(self):
     return utils.get_discovered_iscsi_qns()
Beispiel #4
0
 def get_list(self):
     return utils.get_discovered_iscsi_qns()