Skip to content

Commit

Permalink
fixed some pyflakes
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed Oct 1, 2015
1 parent 75f99f8 commit 6ec5abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ansible/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ def ask_vault_passwords(ask_vault_pass=False, ask_new_vault_pass=False, confirm_
if ask_vault_pass and confirm_vault:
vault_pass2 = getpass.getpass(prompt="Confirm Vault password: ")
if vault_pass != vault_pass2:
raise errors.AnsibleError("Passwords do not match")
raise AnsibleError("Passwords do not match")

if ask_new_vault_pass:
new_vault_pass = getpass.getpass(prompt="New Vault password: ")

if ask_new_vault_pass and confirm_new:
new_vault_pass2 = getpass.getpass(prompt="Confirm New Vault password: ")
if new_vault_pass != new_vault_pass2:
raise errors.AnsibleError("Passwords do not match")
raise AnsibleError("Passwords do not match")
except EOFError:
pass

Expand Down Expand Up @@ -355,7 +355,7 @@ def version_info(gitinfo=False):
''' return full ansible version info '''
if gitinfo:
# expensive call, user with care
ansible_version_string = version('')
ansible_version_string = CLI.version('')
else:
ansible_version_string = __version__
ansible_version = ansible_version_string.split()[0]
Expand Down

0 comments on commit 6ec5abf

Please sign in to comment.