parent
6f6bdf7914
commit
c4a7f64c02
|
@ -90,7 +90,7 @@ class GalaxyLogin(object):
|
|||
display.vvvvv('removing token: %s' % token['token_last_eight'])
|
||||
try:
|
||||
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:
|
||||
res = json.load(e)
|
||||
raise AnsibleError(res['message'])
|
||||
|
|
|
@ -42,6 +42,7 @@ except ImportError:
|
|||
from ansible.utils.display import Display
|
||||
display = Display()
|
||||
|
||||
|
||||
class GalaxyRole(object):
|
||||
|
||||
SUPPORTED_SCMS = set(['git', 'hg'])
|
||||
|
@ -114,7 +115,6 @@ class GalaxyRole(object):
|
|||
|
||||
return self._metadata
|
||||
|
||||
|
||||
@property
|
||||
def install_info(self):
|
||||
"""
|
||||
|
@ -256,7 +256,6 @@ class GalaxyRole(object):
|
|||
else:
|
||||
raise AnsibleError("No valid role data found")
|
||||
|
||||
|
||||
if tmp_file:
|
||||
|
||||
display.debug("installing from %s" % tmp_file)
|
||||
|
|
|
@ -62,4 +62,3 @@ class GalaxyToken(object):
|
|||
def save(self):
|
||||
with open(self.file, 'w') as f:
|
||||
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/task_executor.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/dir.py
|
||||
lib/ansible/inventory/expand_hosts.py
|
||||
|
|
Loading…
Reference in New Issue