Missing contrib.amulet in charm-helpers-hooks

Bug #1509539 reported by james beedy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
heat (Juju Charms Collection)
Expired
Undecided
Unassigned

Bug Description

charmhelpers.contrib.openstack.amulet.utils imports AmuletUtils from charmhelpers.contrib.amulet.utils which does not exist.

OpenStackAmuletUtils can't inherit its base class because it doesn't exist.

Charm-helpers-hooks missing contrib.amulet.

Nonexistent import in charm here -> http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/view/head:/charmhelpers/contrib/openstack/amulet/utils.py#L34

*** This is fixed by adding an import to contrib.amulet in charm-helpers-hooks, although I'm not sure if having the inter-charm-helper-package dependency is appropriate....

Revision history for this message
james beedy (jamesbeedy) wrote :
james beedy (jamesbeedy)
description: updated
Revision history for this message
Felipe Reyes (freyes) wrote :

@jamesbeedy, it's true that the hooks/charmhelpers directory doesn't include a copy of contrib.amulet, but amulet related code is intended to be used only from the tests/ directory, which it does contain contrib.amulet[0][1].

Could you provide an example of where this import issue is affecting you?.

[0] https://github.com/openstack/charm-heat/blob/master/charm-helpers-tests.yaml#L4
[1] https://github.com/openstack/charm-heat/tree/master/tests/charmhelpers/contrib/amulet

Revision history for this message
Felipe Reyes (freyes) wrote :

I'm marking this bug as incomplete until more information is provided.

Changed in heat (Juju Charms Collection):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for heat (Juju Charms Collection) because there has been no activity for 60 days.]

Changed in heat (Juju Charms Collection):
status: Incomplete → Expired
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.