def get_free_license(registration_parameters): """ Obtains a free license """ SupportAgent().run() # Execute a single heartbeat run client = OVSClient('monitoring.openvstorage.com', 443, credentials=None, verify=True) client.post('/support/register/', data={'cluster_id': Configuration.get('ovs.support.cid'), 'name': registration_parameters['name'], 'email': registration_parameters['email'], 'company': registration_parameters['company'], 'phone': registration_parameters['phone'], 'newsletter': registration_parameters['newsletter']})
def register(name, email, company, phone, newsletter): """ Registers the environment """ SupportAgent().run() # Execute a single heartbeat run client = OVSClient('monitoring.openvstorage.com', 443, credentials=None, verify=True, version=1) task_id = client.post( '/support/register/', data={ 'cluster_id': EtcdConfiguration.get('/ovs/framework/cluster_id'), 'name': name, 'email': email, 'company': company, 'phone': phone, 'newsletter': newsletter, 'register_only': True }) if task_id: client.wait_for_task(task_id, timeout=120) EtcdConfiguration.set('/ovs/framework/registered', True)
def get_free_license(registration_parameters): """ Obtains a free license """ SupportAgent().run() # Execute a single heartbeat run client = OVSClient('monitoring.openvstorage.com', 443, credentials=None, verify=True) client.post('/support/register/', data={ 'cluster_id': Configuration.get('ovs.support.cid'), 'name': registration_parameters['name'], 'email': registration_parameters['email'], 'company': registration_parameters['company'], 'phone': registration_parameters['phone'], 'newsletter': registration_parameters['newsletter'] })
def register(name, email, company, phone, newsletter): """ Registers the environment """ SupportAgent().run() # Execute a single heartbeat run client = OVSClient('monitoring.openvstorage.com', 443, credentials=None, verify=True, version=1) task_id = client.post('/support/register/', data={'cluster_id': EtcdConfiguration.get('/ovs/framework/cluster_id'), 'name': name, 'email': email, 'company': company, 'phone': phone, 'newsletter': newsletter, 'register_only': True}) if task_id: client.wait_for_task(task_id, timeout=120) EtcdConfiguration.set('/ovs/framework/registered', True)