Solving Coverity issues (#28057)

pull/28252/merge
Anil Kumar Muraleedharan 7 years ago committed by John R Barker
parent ffd701c8d1
commit 55df3e05ed

@ -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)

Loading…
Cancel
Save