Skip to content

Commit

Permalink
nexus: allow list of options
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkrogel committed Dec 16, 2024
1 parent c1b7175 commit 28aabbc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nexus/lib/machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ def add(self,**kwargs):
def read(self,options):
if isinstance(options,(dict,obj)):
self.add(**options)
elif isinstance(options,list):
for o in options:
if not isinstance(o,str):
self.error('each option must be a string')
#end if
self[str(len(self))] = o
#end for
elif isinstance(options,str):
nopts = 0
intext = False
Expand Down

0 comments on commit 28aabbc

Please sign in to comment.