1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Solving Coverity issues (#28057)

This commit is contained in:
Anil Kumar Muraleedharan 2017-08-16 21:59:34 +05:30 committed by John R Barker
parent ffd701c8d1
commit 55df3e05ed

View file

@ -136,8 +136,7 @@ def main():
file.close()
errorMsg = cnos.checkOutputForError(output)
errorMsg = None
if(errorMsg is None):
if(errorMsg in "Device Response Timed out"):
module.exit_json(changed=True, msg="Device is Reloading. Please wait...")
else:
module.fail_json(msg=errorMsg)