Skip to content

Commit

Permalink
Fixing bug in get_maname in as_ma ioc initializtion script
Browse files Browse the repository at this point in the history
  • Loading branch information
gu1lhermelp committed Jul 4, 2018
1 parent 1f0e8b8 commit 00b9b24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion as-ma/scripts/sirius-ioc-as-ma.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def get_manames(bbbname):
manames = set()
psnames = PSSearch.conv_bbbname_2_psnames(bbbname)
for psname in psnames:
maname = MASearch.conv_psname_2_maname_pwrsupply(psname)
maname = MASearch.conv_psname_2_maname_pwrsupply(psname[0])
if maname is None:
continue
manames.add(maname)
return list(manames)

Expand Down

0 comments on commit 00b9b24

Please sign in to comment.