mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07:00
Solving Coverity issues (#28057)
This commit is contained in:
parent
ffd701c8d1
commit
55df3e05ed
1 changed files with 1 additions and 2 deletions
|
@ -136,8 +136,7 @@ def main():
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
errorMsg = cnos.checkOutputForError(output)
|
errorMsg = cnos.checkOutputForError(output)
|
||||||
errorMsg = None
|
if(errorMsg in "Device Response Timed out"):
|
||||||
if(errorMsg is None):
|
|
||||||
module.exit_json(changed=True, msg="Device is Reloading. Please wait...")
|
module.exit_json(changed=True, msg="Device is Reloading. Please wait...")
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg=errorMsg)
|
module.fail_json(msg=errorMsg)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue