diff options
author | Jakub Jelinek <vilouskubajj@gmail.com> | 2023-01-15 15:27:14 +0000 |
---|---|---|
committer | Jakub Jelinek <vilouskubajj@gmail.com> | 2023-01-17 18:40:28 +0000 |
commit | f113210999b0492085e925462f41b4ffa9fb5165 (patch) | |
tree | a4a68c50a74417cd1243cff9b25e4b6cb29ccf6e /ironic/drivers | |
parent | b11067cfdcef0a370177803eddb86aa972b12b3d (diff) | |
download | ironic-f113210999b0492085e925462f41b4ffa9fb5165.tar.gz |
Create [inventory]
Create [inventory] to hold CONF parameters for storage of introspection data
Story: 2010275
Task: 46204
Change-Id: I06fa4f69160206dd350856e264cbb0842e34fd2a
Diffstat (limited to 'ironic/drivers')
-rw-r--r-- | ironic/drivers/modules/inspector.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ironic/drivers/modules/inspector.py b/ironic/drivers/modules/inspector.py index a4c8c1091..543eaba48 100644 --- a/ironic/drivers/modules/inspector.py +++ b/ironic/drivers/modules/inspector.py @@ -368,7 +368,7 @@ def _check_status(task): elif status.is_finished: _clean_up(task) # If store_data == 'none', do not store the data - store_data = CONF.inspector.inventory_data_backend + store_data = CONF.inventory.data_backend if store_data == 'none': LOG.debug('Introspection data storage is disabled, the data will ' 'not be saved for node %(node)s', {'node': node.uuid}) @@ -417,7 +417,7 @@ def store_introspection_data(node_uuid, inventory_data, plugin_data): """ swift_api = swift.SwiftAPI() swift_object_name = '%s-%s' % (_OBJECT_NAME_PREFIX, node_uuid) - container = CONF.inspector.swift_inventory_data_container + container = CONF.inventory.swift_data_container swift_api.create_object_from_data(swift_object_name + '-inventory', inventory_data, container) @@ -436,7 +436,7 @@ def get_introspection_data(node_uuid): """ swift_api = swift.SwiftAPI() swift_object_name = '%s-%s' % (_OBJECT_NAME_PREFIX, node_uuid) - container = CONF.inspector.swift_inventory_data_container + container = CONF.inventory.swift_data_container inventory_data = swift_api.get_object(swift_object_name + '-inventory', container) plugin_data = swift_api.get_object(swift_object_name + '-plugin', |