aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'grs/Interpret.py')
-rw-r--r--grs/Interpret.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/grs/Interpret.py b/grs/Interpret.py
index 9baf41b..2f3d5a5 100644
--- a/grs/Interpret.py
+++ b/grs/Interpret.py
@@ -245,8 +245,10 @@ class Interpret(Daemon):
semantic_action(_line, objs, 0, _io.isoit)
medium_type = 'isoit'
elif verb == 'netbootit':
- # 'netbootit' can either be just a verb, or a 'verb obj' pair.
- if len(objs):
+ # 'netbootit' can either be just a 'verb', 'verb obj' or 'verb obj obj'
+ if len(objs) == 2:
+ semantic_action(_line, objs, 1, _nb.netbootit, objs[0], obj[1])
+ elif len(objs) == 1:
semantic_action(_line, objs, 1, _nb.netbootit, objs[0])
else:
semantic_action(_line, objs, 0, _nb.netbootit)