Revision 8b46606c lib/utils.py

b/lib/utils.py
388 388
  if allowed_values is None:
389 389
    allowed_values = []
390 390

  
391
  if not isinstance(target, dict):
392
    msg = "Expected dictionary, got '%s'" % target
393
    raise errors.TypeEnforcementError(msg)
394

  
391 395
  for key in target:
392 396
    if key not in key_types:
393 397
      msg = "Unknown key '%s'" % key

Also available in: Unified diff