Refactor Token class

There was not a oslo-incubator module so move openstack/common/keystone_object.py
to sysinv/common/keystone.py and adjust imports where the class was used.

Test:
1. Ran unit tests locally.
2. Built new sysing rpm package.
3. Built new ISO.
4. Installed simplex controller ran a couple of commands sucessfully.

Story: 2006796
Task: 42036

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I95bc209259f677847cd65ed1fa3466fb99f10603
This commit is contained in:
Charles Short 2021-03-11 05:12:04 -05:00
parent 9ef262a5a7
commit c55e96371f
6 changed files with 4 additions and 8 deletions

View File

@ -37,7 +37,7 @@ from six.moves.urllib.error import URLError
from six.moves.urllib.request import urlopen
from sysinv.common import constants
from sysinv.openstack.common.keystone_objects import Token
from sysinv.common.keystone import Token
from sysinv.common import kubernetes as sys_kube
# Subcloud sync status

View File

@ -14,7 +14,7 @@ from six.moves.urllib.error import URLError
from oslo_log import log
from sysinv.common import configp
from sysinv.common import exception as si_exception
from sysinv.openstack.common.keystone_objects import Token
from sysinv.common.keystone import Token
from sysinv.common.exception import OpenStackException
from sysinv.common.exception import OpenStackRestAPIException

View File

@ -15,7 +15,7 @@ from sysinv.common import constants
from sysinv.cert_mon import service as cert_mon
from sysinv.cert_mon import utils as cert_mon_utils
from sysinv.cert_mon import watcher as cert_mon_watcher
from sysinv.openstack.common.keystone_objects import Token
from sysinv.common.keystone import Token
from sysinv.tests.db import base

View File

@ -1,4 +0,0 @@
# Copyright (c) 2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#

View File

@ -5,7 +5,7 @@
import datetime
from sysinv.openstack.common.keystone_objects import Token
from sysinv.common.keystone import Token
from sysinv.tests.db import base
TOKEN_EXPIRATION_WINDOW = 300