# Pastebin 5ZdTeEEQ def create_member(member_dict, pool_id, has_health_monitor=False): member_dict['pool_id'] = pool_id member_dict[constants.PROVISIONING_STATUS] = constants.PENDING_CREATE if has_health_monitor: member_dict[constants.OPERATING_STATUS] = constants.OFFLINE else: member_dict[constants.OPERATING_STATUS] = constants.NO_MONITOR if 'backup' not in member_dict: member_dict['backup'] = False return member_dict