summaryrefslogtreecommitdiff
path: root/lib/ansible/galaxy/login.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/galaxy/login.py')
-rw-r--r--lib/ansible/galaxy/login.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ansible/galaxy/login.py b/lib/ansible/galaxy/login.py
index 29b6c094de..d6bb0a6957 100644
--- a/lib/ansible/galaxy/login.py
+++ b/lib/ansible/galaxy/login.py
@@ -54,12 +54,12 @@ class GalaxyLogin(object):
self.get_credentials()
def get_credentials(self):
- display.display(u'\n\n' + "We need your " + stringc("Github login",'bright cyan') +
+ display.display(u'\n\n' + "We need your " + stringc("Github login",'bright cyan') +
" to identify you.", screen_only=True)
- display.display("This information will " + stringc("not be sent to Galaxy",'bright cyan') +
+ display.display("This information will " + stringc("not be sent to Galaxy",'bright cyan') +
", only to " + stringc("api.github.com.","yellow"), screen_only=True)
display.display("The password will not be displayed." + u'\n\n', screen_only=True)
- display.display("Use " + stringc("--github-token",'yellow') +
+ display.display("Use " + stringc("--github-token",'yellow') +
" if you do not want to enter your password." + u'\n\n', screen_only=True)
try:
@@ -90,7 +90,7 @@ class GalaxyLogin(object):
for token in tokens:
if token['note'] == 'ansible-galaxy login':
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,
url_password=self.github_password, method='DELETE', force_basic_auth=True,)
except HTTPError as e: