Alon Bar-Lev has posted comments on this change.
Change subject: packaging: Fixed creating objects in an insecure way
......................................................................
Patch Set 2: (1 inline comment)
....................................................
File src/engine-iso-uploader.py
Line 416: else:
Line 417: params["ca_file"] =
self.configuration.get("engine_ca")
Line 418:
Line 419: # Create an API object
Line 420: self.api = API(**params)
Not that I want to be bad... but wouldn't be easier to:
self.api = API(
url=url,
username=self.configuration.get("user"),
password=self.configuration.get("passwd"),
ca_file=self.configuration.get("engine_ca"),
insecure=self.configuration.get("insecure", False),
)
Line 421:
Line 422: pi = self.api.get_product_info()
Line 423: if pi is not None:
Line 424: vrm = '%s.%s.%s' % (
--
To view, visit http://gerrit.ovirt.org/10815
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I015c6b5441f0d1e33bb3aae378a59ad8557f9da5
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-iso-uploader
Gerrit-Branch: master
Gerrit-Owner: Alex Lourie <[email protected]>
Gerrit-Reviewer: Alex Lourie <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Keith Robertson <[email protected]>
Gerrit-Reviewer: Kiril Nesenko <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: Ofer Schreiber <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches