MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / value_to_boolean

Function value_to_boolean

keepercommander/discovery_common/utils.py:13–20  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

11
12
13def value_to_boolean(value):
14 value = str(value)
15 if value.lower() in ['true', 'yes', 'on', '1']:
16 return True
17 elif value.lower() in ['false', 'no', 'off', '0']:
18 return False
19 else:
20 return None
21
22
23def get_connection(**kwargs):

Callers 4

__init__Method · 0.70
get_connectionFunction · 0.70
_process_admin_userMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected