~narindergupta/charms/xenial/promise/trunk

« back to all changes in this revision

Viewing changes to hooks/promise.py

  • Committer: narinder.gupta at canonical
  • Date: 2016-05-11 20:57:06 UTC
  • Revision ID: narinder.gupta@canonical.com-20160511205706-2gubwathj0u7yxy4
modified to support the start service.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import subprocess
7
7
setup.pre_install()
8
8
 
 
9
import platform
 
10
import sys
 
11
import uuid
 
12
 
 
13
from charmhelpers.core.hookenv import (
 
14
    Hooks,
 
15
    config,
 
16
    is_relation_made,
 
17
    log,
 
18
    ERROR,
 
19
    relation_ids,
 
20
    related_units,
 
21
    relation_get,
 
22
    relation_set,
 
23
    service_name,
 
24
    unit_get,
 
25
    UnregisteredHookError,
 
26
    status_set,
 
27
)
 
28
 
9
29
from distutils.version import StrictVersion
10
30
from charmhelpers import fetch
11
31
from charmhelpers.core import hookenv
12
32
 
13
 
from charmhelpers.contrib.charmsupport.nrpe import NRPE
14
 
 
15
33
hooks = Hooks()
16
34
 
17
35
def run_promise():