mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Bulk autopep8 (modules)
As agreed in 2017-12-07 Core meeting bulk fix pep8 issues Generated using: autopep8 1.3.3 (pycodestyle: 2.3.1) autopep8 -r --max-line-length 160 --in-place --ignore E305,E402,E722,E741 lib/ansible/modules Manually fix issues that autopep8 has introduced
This commit is contained in:
parent
d13d7e9404
commit
c57a7f05e1
314 changed files with 3462 additions and 3383 deletions
|
@ -84,9 +84,9 @@ import sys
|
|||
|
||||
try:
|
||||
import paramiko
|
||||
HAS_LIB=True
|
||||
HAS_LIB = True
|
||||
except ImportError:
|
||||
HAS_LIB=False
|
||||
HAS_LIB = False
|
||||
|
||||
_PROMPTBUFF = 4096
|
||||
|
||||
|
@ -101,7 +101,7 @@ def wait_with_timeout(module, shell, prompt, timeout=60):
|
|||
if len(endresult) != 0 and endresult[-1] == prompt:
|
||||
break
|
||||
|
||||
if time.time()-now > timeout:
|
||||
if time.time() - now > timeout:
|
||||
module.fail_json(msg="Timeout waiting for prompt")
|
||||
|
||||
return result
|
||||
|
@ -143,14 +143,14 @@ def set_panwfw_password(module, ip_address, key_filename, newpassword, username)
|
|||
stdout += buff
|
||||
|
||||
# enter password for the first time
|
||||
shell.send(newpassword+'\n')
|
||||
shell.send(newpassword + '\n')
|
||||
|
||||
# wait for the password prompt
|
||||
buff = wait_with_timeout(module, shell, ":")
|
||||
stdout += buff
|
||||
|
||||
# enter password for the second time
|
||||
shell.send(newpassword+'\n')
|
||||
shell.send(newpassword + '\n')
|
||||
|
||||
# wait for the config mode prompt
|
||||
buff = wait_with_timeout(module, shell, "#")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue