~le-charmers/charms/trusty/hacluster/leadership-election

« back to all changes in this revision

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

  • Committer: james.page at ubuntu
  • Date: 2015-06-09 10:12:12 UTC
  • Revision ID: james.page@ubuntu.com-20150609101212-zz5xj34v2rho4hgi
Resync helpers

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