code: def domain_update(auth=None, **kwargs):
      '''
      Update a domain
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keystoneng.domain_update name=domain1 new_name=newdomain
          salt '*' keystoneng.domain_update name=domain1 enabled=True description='new description'
      '''
      cloud = get_operator_cloud(auth)
      kwargs = _clean_kwargs(**kwargs)
      if 'new_name' in kwargs:
          kwargs['name'] = kwargs.pop('new_name')
      return cloud.update_domain(**kwargsf domain_update(auth=None, **kwargs):
      '''
      Update a domain
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keystoneng.domain_update name=domain1 new_name=newdomain
          salt '*' keystoneng.domain_update name=domain1 enabled=True description='new description'
      '''
      cloud = get_operator_cloud(auth)
      kwargs = _clean_kwargs(**kwargs)
      if 'new_name' in kwargs:
          kwargs['name'] = kwargs.pop('new_name')
      return cloud.update_domain(**kwargs)
docs: Update a domain
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' keystoneng.domain_update name=domain1 new_name=newdomain
          salt '*' keystoneng.domain_update name=domain1 enabled=True description='new description'