mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Fix errors reported by pylint. (#23282)
* Fix pylint misplaced-bare-raise errors. * Fix pylint return-in-init error. * Fix pylint bad-format-character error. * Fix pylint too-many-format-args errors. * Fix pylint too-few-format-args errors. * Fix pylint truncated-format-string error.
This commit is contained in:
parent
9e1bf1c6f2
commit
48eeab8a53
15 changed files with 17 additions and 25 deletions
|
@ -449,7 +449,7 @@ class RHEVConn(object):
|
|||
currentdisk = VM.disks.get(name=diskname)
|
||||
if attempt == 100:
|
||||
setMsg("Error, disk %s, state %s" % (diskname, str(currentdisk.status.state)))
|
||||
raise
|
||||
raise Exception()
|
||||
else:
|
||||
attempt += 1
|
||||
time.sleep(2)
|
||||
|
@ -489,7 +489,7 @@ class RHEVConn(object):
|
|||
currentnic = VM.nics.get(name=nicname)
|
||||
if attempt == 100:
|
||||
setMsg("Error, iface %s, state %s" % (nicname, str(currentnic.active)))
|
||||
raise
|
||||
raise Exception()
|
||||
else:
|
||||
attempt += 1
|
||||
time.sleep(2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue