##### SUMMARY

We are running `ansible-test coverage` from the devel branch of Ansible on the `community.kubernetes` collection. It seems like sometime between yesterday morning and today, something in Ansible changed that is causing the error:

```
'Namespace' object has no attribute 'remote_endpoint'
```

See: https://github.com/ansible-collections/community.kubernetes/runs/1025104583?check_suite_focus=true#step:6:17

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
ansible-test

##### ANSIBLE VERSION

```paste below
devel (installed via pip)
```

##### CONFIGURATION

```paste below
N/A
```

##### OS / ENVIRONMENT

Ubuntu 20.04 (GitHub Actions CI)

##### STEPS TO REPRODUCE

```
# Inside the collection.kubernetes directory:
pip install https://github.com/ansible/ansible/archive/devel.tar.gz
ansible-test integration --docker -v --color --retry-on-error --python 3.6 --continue-on-error --diff --coverage
ansible-test coverage xml -v --requirements --group-by command --group-by version
```

##### EXPECTED RESULTS

Coverage report is generated.

##### ACTUAL RESULTS

```
Run ansible-test coverage xml -v --requirements --group-by command --group-by version
  ansible-test coverage xml -v --requirements --group-by command --group-by version
  shell: /bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.6.11/x64
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.6.11/x64/bin/ansible-test", line 28, in <module>
    main()
  File "/opt/hostedtoolcache/Python/3.6.11/x64/bin/ansible-test", line 24, in main
    cli_main()
  File "/opt/hostedtoolcache/Python/3.6.11/x64/lib/python3.6/site-packages/ansible_test/_internal/cli.py", line 159, in main
    config = args.config(args)  # type: CommonConfig
  File "/opt/hostedtoolcache/Python/3.6.11/x64/lib/python3.6/site-packages/ansible_test/_internal/coverage/__init__.py", line 59, in __init__
    super(CoverageConfig, self).__init__(args, 'coverage')
  File "/opt/hostedtoolcache/Python/3.6.11/x64/lib/python3.6/site-packages/ansible_test/_internal/config.py", line 99, in __init__
    self.remote_endpoint = args.remote_endpoint  # type: t.Optional[str]
AttributeError: 'Namespace' object has no attribute 'remote_endpoint'
```
"""
    :type prefix: unicode
    :type parsed_args: any
    :rtype: list[str]
    """
    testcases = []
    
    
    if len(parsed_args.include) != 1:
        return []
    test_dir = os.path.join(data_context().content.integration_targets_path, parsed_args.include[0], 'tests')
    connection_dirs = data_context().content.get_dirs(test_dir)
    for connection_dir in connection_dirs:
        for testcase in [os.path.basename(path) for path in data_context().content.get_files(connection_dir)]:
            if testcase.startswith(prefix):
                testcases.append(testcase.split('.')[0])
    return testcases
def complete_sanity_test(prefix, parsed_args, **_):
    """
    :type prefix: unicode
    :type parsed_args: any
    :rtype: list[str]
    """
    del parsed_args
    tests = sorted(test.name for test in sanity_get_tests())
    return [i for i in tests if i.startswith(prefix)]