Change in ovirt-engine[master]: packaging: setup: workaround python module wooes

emesika at redhat.com emesika at redhat.com
Mon Jan 6 13:40:47 UTC 2014


Eli Mesika has submitted this change and it was merged.

Change subject: packaging: setup: workaround python module wooes
......................................................................


packaging: setup: workaround python module wooes

for some reason when python loads a module it consider only short
name of module and ignores the location from which module was loaded,
so it reuses module when trying to load same module short name from
other package.

this cause the following statement in ovirt_engine.py to reuse self
instead of loading correct module:

 from ovirt_engine import util as outil

work around is to rename current module name:

 apache/ovirt_engine.py -> apache/engine.py

Change-Id: I19607ba117d59e310310694648e116d684f9eb2d
Signed-off-by: Alon Bar-Lev <alonbl at redhat.com>
---
M packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/apache/__init__.py
R packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/apache/engine.py
2 files changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Eli Mesika: Verified; Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I19607ba117d59e310310694648e116d684f9eb2d
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Eyal Edri <eedri at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Kiril Nesenko <knesenko at redhat.com>
Gerrit-Reviewer: Martin Peřina <mperina at redhat.com>
Gerrit-Reviewer: Ofer Schreiber <oschreib at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: Yedidyah Bar David <didi at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list