Revision d6d415e8 lib/cmdlib.py

b/lib/cmdlib.py
2403 2403
    _CheckOutputFields(static=["name", "os", "pnode", "snodes",
2404 2404
                               "admin_state", "admin_ram",
2405 2405
                               "disk_template", "ip", "mac", "bridge",
2406
                               "sda_size", "sdb_size"],
2406
                               "sda_size", "sdb_size", "vcpus"],
2407 2407
                       dynamic=self.dynamic_fields,
2408 2408
                       selected=self.op.output_fields)
2409 2409

  
......
2479 2479
            val = None
2480 2480
          else:
2481 2481
            val = disk.size
2482
        elif field == "vcpus":
2483
          val = instance.vcpus
2482 2484
        else:
2483 2485
          raise errors.ParameterError(field)
2484 2486
        iout.append(val)

Also available in: Unified diff