
Enabling automatic pylint with tox and zull for each new patchset. Test plan: PASS: Run "tox -e pylint" in the terminal, this will: - Run pylint in all python files - Show the report Story: 2005051 Task: 47900 Change-Id: I2f66a5f72e3f8746c00aae96287ad3e4edb88e28 Signed-off-by: Lindley Werner <lindley.vieira@encora.com>
37 lines
935 B
Python
37 lines
935 B
Python
#!/usr/bin/python3
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
"""
|
|
This module contains a class named Lab and some supporting code.
|
|
The Lab class represents a virtual lab and has a dictionary attribute VBOX
|
|
containing information about the virtual machines in the lab.
|
|
"""
|
|
|
|
import getpass
|
|
from sys import platform
|
|
import os
|
|
|
|
user = getpass.getuser()
|
|
|
|
if platform in ("win32", "win64"):
|
|
LOGPATH = "C:\\Temp\\pybox_logs"
|
|
PORT = 10000
|
|
else:
|
|
homedir = os.environ["HOME"]
|
|
LOGPATH = f"{homedir}/vbox_installer_logs"
|
|
|
|
|
|
class Lab: #pylint: disable=too-few-public-methods
|
|
"""The `Lab` class represents a virtual lab and contains a dictionary attribute
|
|
`VBOX` with information about the virtual machines in the lab."""
|
|
|
|
VBOX = {
|
|
"floating_ip": "10.10.10.7",
|
|
"controller-0_ip": "10.10.10.8",
|
|
"controller-1_ip": "10.10.10.9",
|
|
"username": "sysadmin",
|
|
"password": "Li69nux*",
|
|
}
|