~ahasenack/charms/trusty/percona-cluster-autodetect-vip/trunk

« back to all changes in this revision

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

  • Committer: Liam Young
  • Date: 2015-05-13 10:11:03 UTC
  • Revision ID: liam.young@canonical.com-20150513101103-i70nvo0ucehj9m4b
Charm helper sync

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