mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Minor Undefined variable fixes (#53383)
Signed-off-by: Bhavik Bhavsar <bbhavsar@redhat.com>
This commit is contained in:
parent
5a4940d197
commit
bcb2f59458
2 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue