Minor Undefined variable fixes (#53383)

Signed-off-by: Bhavik Bhavsar <bbhavsar@redhat.com>
pull/53531/head
bhavikbhavsar 6 years ago committed by ansibot
parent 5a4940d197
commit bcb2f59458

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

@ -407,7 +407,7 @@ def main():
errors.append(path)
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.
if not check_mode and os.path.getsize(dest) != size:

Loading…
Cancel
Save