Revision 51a95d00 lib/hypervisor/hv_xen.py

b/lib/hypervisor/hv_xen.py
335 335

  
336 336
    self._cmd = _cmd
337 337

  
338
  def _GetCommand(self):
338
  def _GetCommand(self, hvparams=None):
339 339
    """Returns Xen command to use.
340 340

  
341
    @type hvparams: dict of strings
342
    @param hvparams: hypervisor parameters
343

  
341 344
    """
342 345
    if self._cmd is None:
343
      # TODO: Make command a hypervisor parameter
344
      cmd = constants.XEN_CMD
346
      if hvparams is not None:
347
        cmd = hvparams[constants.HV_XEN_CMD]
348
      else:
349
        # TODO: Remove autoconf option once retrieving the command from
350
        # the hvparams is fully implemented.
351
        cmd = constants.XEN_CMD
345 352
    else:
346 353
      cmd = self._cmd
347 354

  

Also available in: Unified diff