mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
6f6bdf7914
commit
c4a7f64c02
6 changed files with 25 additions and 32 deletions
|
@ -90,7 +90,7 @@ class GalaxyLogin(object):
|
||||||
display.vvvvv('removing token: %s' % token['token_last_eight'])
|
display.vvvvv('removing token: %s' % token['token_last_eight'])
|
||||||
try:
|
try:
|
||||||
open_url('https://api.github.com/authorizations/%d' % token['id'], url_username=self.github_username,
|
open_url('https://api.github.com/authorizations/%d' % token['id'], url_username=self.github_username,
|
||||||
url_password=self.github_password, method='DELETE', force_basic_auth=True,)
|
url_password=self.github_password, method='DELETE', force_basic_auth=True)
|
||||||
except HTTPError as e:
|
except HTTPError as e:
|
||||||
res = json.load(e)
|
res = json.load(e)
|
||||||
raise AnsibleError(res['message'])
|
raise AnsibleError(res['message'])
|
||||||
|
|
|
@ -42,6 +42,7 @@ except ImportError:
|
||||||
from ansible.utils.display import Display
|
from ansible.utils.display import Display
|
||||||
display = Display()
|
display = Display()
|
||||||
|
|
||||||
|
|
||||||
class GalaxyRole(object):
|
class GalaxyRole(object):
|
||||||
|
|
||||||
SUPPORTED_SCMS = set(['git', 'hg'])
|
SUPPORTED_SCMS = set(['git', 'hg'])
|
||||||
|
@ -114,7 +115,6 @@ class GalaxyRole(object):
|
||||||
|
|
||||||
return self._metadata
|
return self._metadata
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def install_info(self):
|
def install_info(self):
|
||||||
"""
|
"""
|
||||||
|
@ -256,7 +256,6 @@ class GalaxyRole(object):
|
||||||
else:
|
else:
|
||||||
raise AnsibleError("No valid role data found")
|
raise AnsibleError("No valid role data found")
|
||||||
|
|
||||||
|
|
||||||
if tmp_file:
|
if tmp_file:
|
||||||
|
|
||||||
display.debug("installing from %s" % tmp_file)
|
display.debug("installing from %s" % tmp_file)
|
||||||
|
|
|
@ -62,4 +62,3 @@ class GalaxyToken(object):
|
||||||
def save(self):
|
def save(self):
|
||||||
with open(self.file, 'w') as f:
|
with open(self.file, 'w') as f:
|
||||||
yaml.safe_dump(self.config, f, default_flow_style=False)
|
yaml.safe_dump(self.config, f, default_flow_style=False)
|
||||||
|
|
||||||
|
|
|
@ -23,11 +23,6 @@ lib/ansible/executor/process/worker.py
|
||||||
lib/ansible/executor/stats.py
|
lib/ansible/executor/stats.py
|
||||||
lib/ansible/executor/task_executor.py
|
lib/ansible/executor/task_executor.py
|
||||||
lib/ansible/executor/task_queue_manager.py
|
lib/ansible/executor/task_queue_manager.py
|
||||||
lib/ansible/galaxy/__init__.py
|
|
||||||
lib/ansible/galaxy/api.py
|
|
||||||
lib/ansible/galaxy/login.py
|
|
||||||
lib/ansible/galaxy/role.py
|
|
||||||
lib/ansible/galaxy/token.py
|
|
||||||
lib/ansible/inventory/__init__.py
|
lib/ansible/inventory/__init__.py
|
||||||
lib/ansible/inventory/dir.py
|
lib/ansible/inventory/dir.py
|
||||||
lib/ansible/inventory/expand_hosts.py
|
lib/ansible/inventory/expand_hosts.py
|
||||||
|
|
Loading…
Reference in a new issue