Revision c270ee07 lib/cmdlib.py

b/lib/cmdlib.py
4408 4408
          hv_class.CheckParameterSyntax(hv_params)
4409 4409
          _CheckHVParams(self, node_list, hv_name, hv_params)
4410 4410

  
4411
    # FIXME: Regarding enabled_storage_types: If a method is removed
4412
    # which is actually currently used by an instance, should removing
4413
    # it be prevented?
4414

  
4411 4415
    if self.op.os_hvp:
4412 4416
      # no need to check any newly-enabled hypervisors, since the
4413 4417
      # defaults have already been checked in the above code-block
......
4459 4463
    if self.op.enabled_hypervisors is not None:
4460 4464
      self.cluster.hvparams = self.new_hvparams
4461 4465
      self.cluster.enabled_hypervisors = self.op.enabled_hypervisors
4466
    if self.op.enabled_storage_types is not None:
4467
      self.cluster.enabled_storage_types = \
4468
        list(set(self.op.enabled_storage_types))
4462 4469
    if self.op.beparams:
4463 4470
      self.cluster.beparams[constants.PP_DEFAULT] = self.new_beparams
4464 4471
    if self.op.nicparams:

Also available in: Unified diff