mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix galaxy client executing queries with invalid http method (#42201)
Fixes: ansible/galaxy#796
This commit is contained in:
parent
d497eba196
commit
1eea5674ba
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ class GalaxyAPI(object):
|
|||
args['alternate_role_name'] = role_name
|
||||
elif github_repo.startswith('ansible-role'):
|
||||
args['alternate_role_name'] = github_repo[len('ansible-role') + 1:]
|
||||
data = self.__call_galaxy(url, args=urlencode(args))
|
||||
data = self.__call_galaxy(url, args=urlencode(args), method="POST")
|
||||
if data.get('results', None):
|
||||
return data['results']
|
||||
return data
|
||||
|
@ -279,7 +279,7 @@ class GalaxyAPI(object):
|
|||
"github_repo": github_repo,
|
||||
"secret": secret
|
||||
})
|
||||
data = self.__call_galaxy(url, args=args)
|
||||
data = self.__call_galaxy(url, args=args, method="POST")
|
||||
return data
|
||||
|
||||
@g_connect
|
||||
|
|
Loading…
Reference in a new issue