Douglas Schilling Landgraf has uploaded a new change for review. Change subject: deployUtil: getRemoteFile should use 80 for http ......................................................................
deployUtil: getRemoteFile should use 80 for http getRemoteFile() has fallback mode to collect data from Engine which uses httplib.HTTPConnection() call. However, the current logic only assign the port 80 to the call when strPort is None which doesn't help. For example, if users use port 443 in autoinstall and gets the fallback mode it will receive a return of 400 (bad request). Change-Id: I09c03285ee1f7e61f9bc977244a4f0ee4f9d45f0 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1065368 Signed-off-by: Douglas Schilling Landgraf <[email protected]> --- M vdsm_reg/deployUtil.py.in 1 file changed, 1 insertion(+), 6 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/89/27089/1 diff --git a/vdsm_reg/deployUtil.py.in b/vdsm_reg/deployUtil.py.in index fa69ba6..cfea8a7 100644 --- a/vdsm_reg/deployUtil.py.in +++ b/vdsm_reg/deployUtil.py.in @@ -1571,14 +1571,9 @@ except: logging.debug("%s failed in HTTPS. Retrying using HTTP.", fileName, exc_info=True) - strPort = ":" - if port is None: - strPort += "80" - else: - strPort += port try: - conn = httplib.HTTPConnection(IP + strPort) + conn = httplib.HTTPConnection(IP + ":80") conn.request("GET", fileName) response = conn.getresponse() except: -- To view, visit http://gerrit.ovirt.org/27089 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I09c03285ee1f7e61f9bc977244a4f0ee4f9d45f0 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Douglas Schilling Landgraf <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
