~hopem/charms/trusty/percona-cluster/fix-mysql-helper-passwd-backcompat

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/hahelpers/cluster.py

  • Committer: Edward Hope-Morley
  • Date: 2015-02-25 17:29:36 UTC
  • Revision ID: edward.hope-morley@canonical.com-20150225172936-gjf8pb0xiow8jb64
Synced charm-helpers to get fix for LP #1423153

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
from charmhelpers.core.decorators import (
49
49
    retry_on_exception,
50
50
)
 
51
from charmhelpers.core.strutils import (
 
52
    bool_from_string,
 
53
)
51
54
 
52
55
 
53
56
class HAIncompleteConfig(Exception):
164
167
    .
165
168
    returns: boolean
166
169
    '''
167
 
    if config_get('use-https') == "yes":
 
170
    use_https = config_get('use-https')
 
171
    if use_https and bool_from_string(use_https):
168
172
        return True
169
173
    if config_get('ssl_cert') and config_get('ssl_key'):
170
174
        return True