Merge "trivial: Remove unused constants, functions"

This commit is contained in:
Zuul 2019-04-08 18:13:36 +00:00 committed by Gerrit Code Review
commit 6cf18d508c
4 changed files with 0 additions and 19 deletions

View File

@ -101,14 +101,6 @@ def mask_passwd_in_url(url):
return urlparse.urlunparse(new_parsed)
def _db_error(caught_exception):
print(caught_exception)
print(_("The above error may show that the database has not "
"been created.\nPlease create a database using "
"'nova-manage db sync' before running this command."))
sys.exit(1)
class FloatingIpCommands(object):
"""Class for managing floating IP."""

View File

@ -44,9 +44,6 @@ from nova import version
CONF = nova.conf.CONF
PLACEMENT_DOCS_LINK = 'https://docs.openstack.org/nova/latest' \
'/user/placement.html'
# NOTE(efried): 1.30 is required by nova-compute to support resource provider
# reshaping (inventory and allocation data migration).
# NOTE: If you bump this version, remember to update the history

View File

@ -31,13 +31,6 @@ from nova.tests.unit.virt import powervm
from nova.virt.powervm import vm
LPAR_MAPPING = (
{
'z3-9-5-126-127-00000001': '089ffb20-5d19-4a8c-bb80-13650627d985',
'z3-9-5-126-208-000001f0': '668b0882-c24a-4ae9-91c8-297e95e3fe29'
})
class TestVMBuilder(test.NoDBTestCase):
def setUp(self):

View File

@ -81,7 +81,6 @@ XENAPI_POWER_STATE = {
SECTOR_SIZE = 512
MBR_SIZE_SECTORS = 63
MBR_SIZE_BYTES = MBR_SIZE_SECTORS * SECTOR_SIZE
KERNEL_DIR = '/boot/guest'
MAX_VDI_CHAIN_SIZE = 16
PROGRESS_INTERVAL_SECONDS = 300
DD_BLOCKSIZE = 65536