code: def set_chassis_datacenter(location,
                           host=None,
                           admin_username=None,
                           admin_password=None):
      '''
      Set the location of the chassis.
  
      location
          The name of the datacenter to be set on the chassis.
  
      host
          The chassis host.
  
      admin_username
          The username used to access the chassis.
  
      admin_password
          The password used to access the chassis.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' dracr.set_chassis_datacenter datacenter-name host=111.222.333.444
              admin_username=root admin_password=secret
  
      '''
      return set_general('cfgLocation', 'cfgLocationDatacenter', location,
                           host=host, admin_username=admin_username,
                           admin_password=admin_passwordf set_chassis_datacenter(location,
                           host=None,
                           admin_username=None,
                           admin_password=None):
      '''
      Set the location of the chassis.
  
      location
          The name of the datacenter to be set on the chassis.
  
      host
          The chassis host.
  
      admin_username
          The username used to access the chassis.
  
      admin_password
          The password used to access the chassis.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' dracr.set_chassis_datacenter datacenter-name host=111.222.333.444
              admin_username=root admin_password=secret
  
      '''
      return set_general('cfgLocation', 'cfgLocationDatacenter', location,
                           host=host, admin_username=admin_username,
                           admin_password=admin_password)
docs: Set the location of the chassis.
  
      location
          The name of the datacenter to be set on the chassis.
  
      host
          The chassis host.
  
      admin_username
          The username used to access the chassis.
  
      admin_password
          The password used to access the chassis.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' dracr.set_chassis_datacenter datacenter-name host=111.222.333.444
              admin_username=root admin_password=secret