lp:~james-page/charm-helpers/configure_source_redux

Created by James Page and last modified
Get this branch:
bzr branch lp:~james-page/charm-helpers/configure_source_redux
Only James Page can upload to this branch. If you are James Page please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
James Page
Project:
Charm Helpers
Status:
Merged

Recent revisions

40. By James Page

Tidy lint

39. By James Page

Fixup failing test for cloud: type

38. By James Page

Rebase against trunk

37. By James Page

Really fixup cloud archive stuff

36. By James Page

Fixup cloud: handling

35. By James Page

Rebase against trunk

34. By James Page

Fixup configure_source/add_source functions; add tests.

33. By James Page

[stub] Misc fixes around use of Serializable including:

1) Make Serializable pickleable

2) Ensure string results are usable strings

32. By Matthew Wedgwood

[james-page] Refactoring of service control code in host helper

1) Use 'service' command for all service control

Detecting upstart and init.d configuration files is overkill; this is
exactly what the 'service' command is design todo and it also deals with
saucy onwards where init.d and upstart configuration with the same
name might be installed.

'service' will always do the right thing

2) Added restart and reload helpers

reload detects an error (say the service is not running) and will fallback
to restart if so.

This is inline with the openstack charm helpers code.

31. By Matthew Wedgwood

[james-page] Various refactoring + additions to hookenv

1) cached decorator

Allows caching of function + args to avoid repeated calls out the cli
to juju commands.

2) Normalizing missing unit/config/relation data to None

relation_get('missing') == None
config('missing') == None
unit_get('missing') == None

3) Normalized use of the Serializable object a bit

And added a unit test to cover missing attribute lookups

Question: maybe this should actually return 'None' rather than throwing
an exception inline with 2).

4) Tweaks some tests to be closer to juju behaviour with json

5) Tidied misc pep8/pylint warnings.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:charm-helpers
This branch contains Public information 
Everyone can see this information.

Subscribers