Fix sysinv pep8 tox failure
Issues: - F401: 'REGION_ONE_NAME' imported but never used - E302: Expected 2 blank lines, found 1 - F841: Local variable 'kspass' is assigned to but never used. Fixes: - Removed the unused import. - Added a blank line. - Removed unused local variable 'kspass'. Story: 2002888 Task: 23097 Change-Id: Ib2fa3b51e7570e3255edbf426b789cbeb59900ea Signed-off-by: Mathieu Robinson <mathieu.robinson@windriver.com>
This commit is contained in:
parent
be59494af5
commit
b662645257
@ -8,7 +8,6 @@ import pecan
|
|||||||
import socket
|
import socket
|
||||||
from rest_api import get_token
|
from rest_api import get_token
|
||||||
from rest_api import rest_api_request
|
from rest_api import rest_api_request
|
||||||
from sysinv.common.constants import REGION_ONE_NAME
|
|
||||||
from sysinv.openstack.common import log
|
from sysinv.openstack.common import log
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
LOG = log.getLogger(__name__)
|
||||||
@ -23,6 +22,7 @@ def _get_token():
|
|||||||
system = pecan.request.dbapi.isystem_get_one()
|
system = pecan.request.dbapi.isystem_get_one()
|
||||||
return get_token(system.region_name)
|
return get_token(system.region_name)
|
||||||
|
|
||||||
|
|
||||||
def swact_pre_check(hostname, timeout):
|
def swact_pre_check(hostname, timeout):
|
||||||
"""
|
"""
|
||||||
Sends a Swact Pre-Check command to SM.
|
Sends a Swact Pre-Check command to SM.
|
||||||
|
@ -32,7 +32,6 @@ class SmPuppet(openstack.OpenstackBasePuppet):
|
|||||||
|
|
||||||
def get_system_config(self):
|
def get_system_config(self):
|
||||||
ksuser = self._get_service_user_name(self.SERVICE_NAME)
|
ksuser = self._get_service_user_name(self.SERVICE_NAME)
|
||||||
kspass = self._get_service_password(self.SERVICE_NAME)
|
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
'smapi::keystone::authtoken::username': ksuser,
|
'smapi::keystone::authtoken::username': ksuser,
|
||||||
|
Loading…
Reference in New Issue
Block a user