def _validate_file_roots(file_roots):
 if (not isinstance(file_roots, dict)):
  log.warning('The file_roots parameter is not properly formatted, using defaults')
  return {'base': _expand_glob_path([salt.syspaths.BASE_FILE_ROOTS_DIR])}
 for (saltenv, dirs) in six.iteritems(file_roots):
  normalized_saltenv = six.text_type(saltenv)
  if (normalized_saltenv != saltenv):
   file_roots[normalized_saltenv] = file_roots.pop(saltenv)
  if (not isinstance(dirs, (list, tuple))):
   file_roots[normalized_saltenv] = []
  file_roots[normalized_saltenv] = _expand_glob_path(file_roots[normalized_saltenv])
 return file_roots

def _validate_file_roots ( file_roots ) : if ( not isinstance ( file_roots , dict ) ) : log . warning ( 'The file_roots parameter is not properly formatted, using defaults' ) return { 'base' : _expand_glob_path ( [ salt . syspaths . BASE_FILE_ROOTS_DIR ] ) } for ( saltenv , dirs ) in six . iteritems ( file_roots ) : normalized_saltenv = six . text_type ( saltenv ) if ( normalized_saltenv != saltenv ) : file_roots [ normalized_saltenv ] = file_roots . pop ( saltenv ) if ( not isinstance ( dirs , ( list , tuple ) ) ) : file_roots [ normalized_saltenv ] = [ ] file_roots [ normalized_saltenv ] = _expand_glob_path ( file_roots [ normalized_saltenv ] ) return file_roots
if the file_roots option has a key that is none then we will error out .