diff --git a/scripts/gnt-debug b/scripts/gnt-debug
index 385ccb8335cb1f2d7292d4b849f0b7d0d9b51b52..e34b409194ee7a9941a8cbc57168743eb6e47cf2 100755
--- a/scripts/gnt-debug
+++ b/scripts/gnt-debug
@@ -142,11 +142,11 @@ def TestAllocator(opts, args):
                                disks=disks,
                                disk_template=opts.disk_template,
                                nics=nic_dict,
-                               os=opts.os_type,
+                               os=opts.os,
                                vcpus=opts.vcpus,
                                tags=opts.tags,
                                direction=opts.direction,
-                               allocator=opts.allocator,
+                               allocator=opts.iallocator,
                                )
   result = SubmitOpCode(op)
   ToStdout("%s" % result)