Simone Tiraboschi has uploaded a new change for review.

Change subject: upload: remove nossl option
......................................................................

upload: remove nossl option

Rest APIs doesn't support plain http connection
so nossl doesn't make sense. Removing it.

Cherry picked from: http://gerrit.ovirt.org/#/c/29711/

Change-Id: I04934a3a2c7b004c94692d5b163a73746c29d38c
Bug-Url: https://bugzilla.redhat.com/1117370
Signed-off-by: Simone Tiraboschi <stira...@redhat.com>
---
M src/__main__.py
1 file changed, 1 insertion(+), 9 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-iso-uploader 
refs/changes/15/29715/1

diff --git a/src/__main__.py b/src/__main__.py
index 98d6d8e..505ed99 100644
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -487,8 +487,7 @@
                     "the oVirt Engine REST API."
                 )
 
-            url = ("http://"; if self.configuration.get("nossl")
-                   else "https://";) + self.configuration.get("engine") + "/api"
+            url = "https://"; + self.configuration.get("engine") + "/api"
 
             try:
                 # If "insecure" option was provided, use it during API creation
@@ -1296,13 +1295,6 @@
     parser.add_option(
         "", "--insecure", dest="insecure",
         help="Do not make an attempt to verify the engine.",
-        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
     )


-- 
To view, visit http://gerrit.ovirt.org/29715
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I04934a3a2c7b004c94692d5b163a73746c29d38c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-iso-uploader
Gerrit-Branch: ovirt-iso-uploader-3.4
Gerrit-Owner: Simone Tiraboschi <stira...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to