Charm should not import landscape code for install hook

Bug #1331070 reported by Adam Collard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
landscape-client (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

At the moment the install hook is a symlink to hooks.py which imports common.py which...tries to import landscape code.

This is a bootstrap problem, masked by the fact that landscape-client code is distributed by default in Ubuntu cloud images.

Tags: kanban
Revision history for this message
Adam Collard (adam-collard) wrote :

unit-landscape-client-1: 2014-06-17 16:27:35 INFO install Traceback (most recent call last):
unit-landscape-client-1: 2014-06-17 16:27:35 INFO install File "/var/lib/juju/agents/unit-landscape-client-1/charm/hooks/install", line 17, in <module>
unit-landscape-client-1: 2014-06-17 16:27:35 INFO install from common import (
unit-landscape-client-1: 2014-06-17 16:27:35 INFO install File "/var/lib/juju/agents/unit-landscape-client-1/charm/hooks/common.py", line 11, in <module>
unit-landscape-client-1: 2014-06-17 16:27:35 INFO install from landscape.configuration import (
unit-landscape-client-1: 2014-06-17 16:27:35 INFO install ImportError: No module named landscape.configuration

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.