Merge pull request #1366 from matburt/fix_vsphere_copy

Fix up vsphere_copy after open_url change
This commit is contained in:
Brian Coca 2015-12-14 10:13:19 -05:00
commit f3251de29c

View file

@ -137,8 +137,9 @@ def main():
} }
try: try:
r = open_url(module, url, data=data, headers=headers, method='PUT', r = open_url(url, data=data, headers=headers, method='PUT',
url_username=login, url_password=password, validate_certs=validate_certs) url_username=login, url_password=password, validate_certs=validate_certs,
force_basic_auth=True)
except socket.error, e: except socket.error, e:
if isinstance(e.args, tuple) and e[0] == errno.ECONNRESET: if isinstance(e.args, tuple) and e[0] == errno.ECONNRESET:
# VSphere resets connection if the file is in use and cannot be replaced # VSphere resets connection if the file is in use and cannot be replaced