keys = [rec[key] for rec in recs]
return dict(zip(keys, recs))
-
class SfaAPI(BaseAPI):
# flat list of method names
self.plauth = {'Username': self.config.SFA_PLC_USER,
'AuthMethod': 'password',
'AuthString': self.config.SFA_PLC_PASSWORD}
+
try:
sys.path.append(os.path.dirname(os.path.realpath("/usr/bin/plcsh")))
self.plshell_type = 'direct'
# fill sfa info
for record in records:
+ # skip records with no pl info (top level authorities)
+ if record['pointer'] == -1:
+ continue
sfa_info = {}
type = record['type']
if (type == "slice"):