if power not in ['ac', 'dc']:
        ret['result'] = False
        ret['comment'] = '"{0}" is not a power type'.format(power)
        log.debug(ret['comment'])
        return ret