FIX: Read credentials from env variables

This commit is contained in:
Jean-Claude 2020-04-22 19:48:20 +02:00
parent 0ad32183e3
commit a48dc419df
Signed by: jeanclaude
GPG Key ID: 8A300F57CBB9F63E
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python
import os
import time
import logging
@ -16,8 +16,8 @@ class HpUpdater():
logger.debug('login called')
driver.get('https://admin.hostpoint.ch/customer/Auth/Login')
driver.find_element_by_name('username').send_keys('jeanggi90@gmail.com')
driver.find_element_by_name('password').send_keys('`^0oVc2Yd9`tQ&l]&4X04QNV<')
driver.find_element_by_name('username').send_keys(os.environ.get('HpLogin'))
driver.find_element_by_name('password').send_keys(os.environ.get('HpPass'))
driver.find_element_by_name('login').click()
def _updateARecord(self, driver, ip):