Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Add 'api_key' to default config server dict
Browse files Browse the repository at this point in the history
  • Loading branch information
alikins committed May 21, 2019
1 parent 1f35cf8 commit d40410b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ansible_galaxy/config/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def get_config_path():
DEFAULTS = [
('server',
{'url': 'https://galaxy.ansible.com',
'ignore_certs': False}
'ignore_certs': False,
'api_key': None}
),

# In order of priority
Expand Down
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def inject_mazer_home(monkeypatch):
def galaxy_context(tmpdir):
# FIXME: mock
server = {'url': 'http://localhost:8000',
'ignore_certs': False}
'ignore_certs': False,
'api_key': None,
}
collections_path = tmpdir.mkdir('collections')

from ansible_galaxy.models.context import GalaxyContext
Expand Down

0 comments on commit d40410b

Please sign in to comment.