Minor Undefined variable fixes (#53383)

Signed-off-by: Bhavik Bhavsar <bbhavsar@redhat.com>
This commit is contained in:
bhavikbhavsar 2019-03-08 19:05:13 +05:30 committed by ansibot
parent 5a4940d197
commit bcb2f59458
2 changed files with 1 additions and 2 deletions

View file

@ -615,7 +615,6 @@ class RHEVConn(object):
return False return False
elif int(DISK.size) > (1024 * 1024 * 1024 * int(disksize)): elif int(DISK.size) > (1024 * 1024 * 1024 * int(disksize)):
setMsg("Shrinking disks is not supported") setMsg("Shrinking disks is not supported")
setMsg(str(e))
setFailed() setFailed()
return False return False
else: else:

View file

@ -407,7 +407,7 @@ def main():
errors.append(path) errors.append(path)
if errors: if errors:
module.fail_json(dest=dest, msg='Error deleting some source files: ' + str(e), files=errors) module.fail_json(dest=dest, msg='Error deleting some source files: ', files=errors)
# Rudimentary check: If size changed then file changed. Not perfect, but easy. # Rudimentary check: If size changed then file changed. Not perfect, but easy.
if not check_mode and os.path.getsize(dest) != size: if not check_mode and os.path.getsize(dest) != size: