def request_boolean(self, msg, default_option=None):
        ret = None
        while ret is None:
            if default_option is True:
                s = self.request_string("%s (YES/no)" % msg)
            elif default_option is False:
                s = self.request_string("%s (NO/yes)" % msg)
            else:
                s = self.request_string("%s (yes/no)" % msg)
            if default_option is not None and s == '':
                return default_option
            if s.lower() in ['yes', 'y']:
                ret = True
            elif s.lower() in ['no', 'n']:
                ret = False
            else:
                self.out.error("%s is not a valid answer" % s)
        return ret
Convert bool status into a health status string
dataset/ETHPy150Open biicode/client/shell/userio.py/UserIO.request_boolean--crossover with--dataset/ETHPy150Open polaris-gslb/polaris-gslb/polaris_health/state/pool.py/pprint_status