Federico Simoncelli has uploaded a new change for review. Change subject: tools: add the nossl option for the engine connection ......................................................................
tools: add the nossl option for the engine connection Change-Id: I84dcfe472006add3e0a7ba42661ea9d1cee85f8c Signed-off-by: Federico Simoncelli <[email protected]> --- M src/engine-iso-uploader.py 1 file changed, 10 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-iso-uploader refs/changes/88/9288/1 diff --git a/src/engine-iso-uploader.py b/src/engine-iso-uploader.py index 05a26f5..147dcee 100644 --- a/src/engine-iso-uploader.py +++ b/src/engine-iso-uploader.py @@ -353,7 +353,11 @@ except Configuration.SkipException: raise Exception("Insufficient information provided to communicate with the oVirt Engine REST API.") - url = "https://" + self.configuration.get("engine") + "/api" + url = "%s://%s/api" % ( + "http" if self.configuration.get("nossl") else "https", + self.configuration.get("engine") + ) + try: self.api = API(url=url, username=self.configuration.get("user"), @@ -878,6 +882,11 @@ action="store_true", default=False) + parser.add_option("", "--nossl", dest="nossl", + help="Do not use ssl to connect to the engine.", + action="store_true", + default=False) + parser.add_option("-v", "--verbose", dest="verbose", action="store_true", default=False) -- To view, visit http://gerrit.ovirt.org/9288 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I84dcfe472006add3e0a7ba42661ea9d1cee85f8c Gerrit-PatchSet: 1 Gerrit-Project: ovirt-iso-uploader Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
