| Conditions | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python3 |
||
| 10 | def check_configuration(client): |
||
| 11 | """ |
||
| 12 | Checking remote Laravel database configuration |
||
| 13 | :param client: String |
||
| 14 | :return: |
||
| 15 | """ |
||
| 16 | _path = system.config[client]['path'] |
||
| 17 | |||
| 18 | system.config[client]['db'] = helper.clean_db_config({ |
||
| 19 | 'name': get_database_parameter(client, 'DB_DATABASE', _path), |
||
| 20 | 'host': get_database_parameter(client, 'DB_HOST', _path), |
||
| 21 | 'password': get_database_parameter(client, 'DB_PASSWORD', _path), |
||
| 22 | 'port': get_database_parameter(client, 'DB_PORT', _path), |
||
| 23 | 'user': get_database_parameter(client, 'DB_USERNAME', _path), |
||
| 24 | }) |
||
| 41 |