Revision 29a32ce5 lib/ssconf.py

b/lib/ssconf.py
387 387
  else:
388 388
    if name != local_name:
389 389
      raise errors.GenericError("Current cluster name is '%s'" % local_name)
390

  
391

  
392
def VerifyKeys(keys):
393
  """Raises an exception if unknown ssconf keys are given.
394

  
395
  @type keys: sequence
396
  @param keys: Key names to verify
397
  @raise errors.GenericError: When invalid keys were found
398

  
399
  """
400
  invalid = frozenset(keys) - _VALID_KEYS
401
  if invalid:
402
    raise errors.GenericError("Invalid ssconf keys: %s" %
403
                              utils.CommaJoin(sorted(invalid)))

Also available in: Unified diff