~marcoceppi/charm-tools/icon-template

« back to all changes in this revision

Viewing changes to helpers/python/charmhelpers/__init__.py

  • Committer: Robert Ayres
  • Date: 2013-03-01 13:26:11 UTC
  • mfrom: (169.1.1 trunk)
  • Revision ID: robert.ayres@canonical.com-20130301132611-gdtdrprn0or3inkd
Merge Benji's changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
SLEEP_AMOUNT = 0.1
44
44
Env = namedtuple('Env', 'uid gid home')
45
 
log = command('juju-log')
46
45
# We create a juju_status Command here because it makes testing much,
47
46
# much easier.
48
47
juju_status = lambda: command('juju')('status')
49
48
 
50
49
 
 
50
def log(message, juju_log=command('juju-log')):
 
51
    return juju_log('--', message)
 
52
 
 
53
 
51
54
def log_entry():
52
55
    log("--> Entering {}".format(script_name()))
53
56