code: def list_users():
      '''
      List all DRAC users
  
      CLI Example:
  
      .. code-block:: bash
  
          salt dell drac.list_users
      '''
      users = {}
      _username = ''
  
      for idx in range(1, 17):
          cmd = __salt__['cmd.run_all']('racadm getconfig -g \
                  cfgUserAdmin -i {0}'.format(idx))
  
          if cmd['retcode'] != 0:
              log.warning('racadm return an exit code \'%s\'.', cmd['retcode'])
  
          for user in cmd['stdout'].splitlines():
              if not user.startswith('cfg'):
                  continue
  
              (key, val) = user.split('=')
  
              if key.startswith('cfgUserAdminUserName'):
                  _username = val.strip()
  
                  if val:
                      users[_username] = {'index': idx}
                  else:
                      break
              else:
                  users[_username].update({key: val})
  
      return userf list_users():
      '''
      List all DRAC users
  
      CLI Example:
  
      .. code-block:: bash
  
          salt dell drac.list_users
      '''
      users = {}
      _username = ''
  
      for idx in range(1, 17):
          cmd = __salt__['cmd.run_all']('racadm getconfig -g \
                  cfgUserAdmin -i {0}'.format(idx))
  
          if cmd['retcode'] != 0:
              log.warning('racadm return an exit code \'%s\'.', cmd['retcode'])
  
          for user in cmd['stdout'].splitlines():
              if not user.startswith('cfg'):
                  continue
  
              (key, val) = user.split('=')
  
              if key.startswith('cfgUserAdminUserName'):
                  _username = val.strip()
  
                  if val:
                      users[_username] = {'index': idx}
                  else:
                      break
              else:
                  users[_username].update({key: val})
  
      return users
docs: List all DRAC users
  
      CLI Example:
  
      .. code-block:: bash
  
          salt dell drac.list_users