code: def role_update(auth=None, **kwargs):
      '''
      Update a role
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keystoneng.role_update name=role1 new_name=newrole
          salt '*' keystoneng.role_update name=1eb6edd5525e4ac39af571adee673559 new_name=newrole
      '''
      cloud = get_operator_cloud(auth)
      kwargs = _clean_kwargs(**kwargs)
      if 'new_name' in kwargs:
          kwargs['name'] = kwargs.pop('new_name')
      return cloud.update_role(**kwargsf role_update(auth=None, **kwargs):
      '''
      Update a role
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keystoneng.role_update name=role1 new_name=newrole
          salt '*' keystoneng.role_update name=1eb6edd5525e4ac39af571adee673559 new_name=newrole
      '''
      cloud = get_operator_cloud(auth)
      kwargs = _clean_kwargs(**kwargs)
      if 'new_name' in kwargs:
          kwargs['name'] = kwargs.pop('new_name')
      return cloud.update_role(**kwargs)
docs: Update a role
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keystoneng.role_update name=role1 new_name=newrole
          salt '*' keystoneng.role_update name=1eb6edd5525e4ac39af571adee673559 new_name=newrole