~hopem/charms/trusty/keystone/lp1476325

« back to all changes in this revision

Viewing changes to hooks/keystone_utils.py

  • Committer: Liam Young
  • Date: 2015-01-12 17:15:37 UTC
  • mfrom: (87.3.12 keystone)
  • Revision ID: liam.young@canonical.com-20150112171537-xx89g7swe1amh0yr
[gnuoy,r=james-page] Add support for nrpe

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
                        if v['services']])
227
227
 
228
228
 
 
229
def services():
 
230
    ''' Returns a list of services associate with this charm '''
 
231
    _services = []
 
232
    for v in restart_map().values():
 
233
        _services = _services + v
 
234
    return list(set(_services))
 
235
 
 
236
 
229
237
def determine_ports():
230
238
    '''Assemble a list of API ports for services we are managing'''
231
239
    ports = [config('admin-port'), config('service-port')]