~openstack-charmers-archive/charms/trusty/keystone/next

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/core/host.py

  • Committer: james.page at ubuntu
  • Date: 2015-06-09 09:50:52 UTC
  • mfrom: (125.2.36 keystone)
  • Revision ID: james.page@ubuntu.com-20150609095052-wgrafyxyh8q9n7ea
Add support for use of leader-election

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
            ['service', service_name, 'status'],
91
91
            stderr=subprocess.STDOUT).decode('UTF-8')
92
92
    except subprocess.CalledProcessError as e:
93
 
        return 'unrecognized service' not in e.output
 
93
        return b'unrecognized service' not in e.output
94
94
    else:
95
95
        return True
96
96