Skip to content

Commit

Permalink
ovirt_disk: fix upload when direct upload fails (#120)
Browse files Browse the repository at this point in the history
* ovirt_disk: fix upload when direct upload fails

* add fragment
  • Loading branch information
mnecas authored Sep 17, 2020
1 parent 69c3b47 commit 02c1f39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- ovirt_disk - fix upload when direct upload fails (https://github.com/oVirt/ovirt-ansible-collection/pull/120).
2 changes: 1 addition & 1 deletion plugins/modules/ovirt_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def create_transfer_connection(module, transfer, context, connect_timeout=10, re
url.netloc, context=context, timeout=connect_timeout)
try:
connection.connect()
except OSError as e:
except Exception as e:
# Typically ConnectionRefusedError or socket.gaierror.
module.warn("Cannot connect to %s, trying %s: %s" % (transfer.transfer_url, transfer.proxy_url, e))

Expand Down

0 comments on commit 02c1f39

Please sign in to comment.