github.repo_present returns stacktrace, got multiple values for keyword argument profile #48039
Labels
Bug
broken, incorrect, or confusing behavior
fixed-pls-verify
fix is linked, bug author to confirm fix
P2
Priority 2
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description of Issue/Question
github.repo_present state errors, returns
TypeError: add_team_repo() got multiple values for keyword argument 'profile'
This is an error in the code:
salt/states/github.py:717
salt/modules/github.py:
def add_team_repo(repo_name, team_name, profile="github", permission=None):
The permission is being put into the positional argument profile.
In other locations the add_team_repo uses
permission=permission
Setup
2018-06-08 20:34:14,945 [salt.state :292 ][ERROR ][30393] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1870, in call
**cdata['kwargs'])
File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1818, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/states/github.py", line 717, in repo_present
profile=profile)
TypeError: add_team_repo() got multiple values for keyword argument 'profile'
The text was updated successfully, but these errors were encountered: