Juan Hernandez has submitted this change and it was merged.
Change subject: cli: Update to generateDS.py 2.12a
......................................................................
cli: Update to generateDS.py 2.12a
Starting with version 3.5.0.0 of the Python SDK the version of
generateDS.py used to generate the code will be 2.12.a. One of the
changes in this version of generateDS.py is that it doesn't import the
datetime class like it used to do. In version 2.9a it imported it as
follows:
from from datetime import datetime, tzinfo, timedelta
In version 2.12a it imports it in a different way:
import datetime as datetime_
We currently depend on the name used by the generated code, so the CLI
doesn't work with the new version of generateDS.py. To fix that problem
and avoid it in the future this patch changes the CLI so that it doesn't
depend on how generateDS.py imports the class.
In addition this patch also updates the setup.py and the RPM spec to
require version 3.5.0.0 of the Python SDK.
Change-Id: Ia1b1529e9428a0b90f914b582f12153c809bdc5b
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
---
M ovirt-engine-cli.spec.in
M setup.py
M src/ovirtcli/format/text.py
3 files changed, 4 insertions(+), 3 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/27969
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia1b1529e9428a0b90f914b582f12153c809bdc5b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-cli
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Ravi Nori <rnori(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org