Skip to content

Commit 85869a1

Browse files
committed
Remove unused function _configdrive_location
This function is never used and can be removed safely. Change-Id: Ied7b4984185ea170d33cb57010de89edeaaaeec5 Closes-Bug: #1690135
1 parent 32ed014 commit 85869a1

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

ironic_python_agent/extensions/standby.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@
3434
IMAGE_CHUNK_SIZE = 1024 * 1024 # 1MB
3535

3636

37-
def _configdrive_location():
38-
"""Get the configdrive location in the local file system.
39-
40-
:returns: The full, absolute path to the configdrive as a string.
41-
"""
42-
return '/tmp/configdrive'
43-
44-
4537
def _image_location(image_info):
4638
"""Get the location of the image in the local file system.
4739

ironic_python_agent/tests/unit/extensions/test_standby.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -487,16 +487,12 @@ def test_cache_image_cached(self, download_mock, write_mock,
487487
autospec=True)
488488
@mock.patch('ironic_python_agent.extensions.standby._download_image',
489489
autospec=True)
490-
@mock.patch('ironic_python_agent.extensions.standby._configdrive_location',
491-
autospec=True)
492490
def test_prepare_image(self,
493-
location_mock,
494491
download_mock,
495492
write_mock,
496493
dispatch_mock,
497494
configdrive_copy_mock):
498495
image_info = _build_fake_image_info()
499-
location_mock.return_value = '/tmp/configdrive'
500496
download_mock.return_value = None
501497
write_mock.return_value = None
502498
dispatch_mock.return_value = 'manager'
@@ -529,16 +525,12 @@ def test_prepare_image(self,
529525
autospec=True)
530526
@mock.patch('ironic_python_agent.extensions.standby._download_image',
531527
autospec=True)
532-
@mock.patch('ironic_python_agent.extensions.standby._configdrive_location',
533-
autospec=True)
534528
def test_prepare_partition_image(self,
535-
location_mock,
536529
download_mock,
537530
write_mock,
538531
dispatch_mock,
539532
configdrive_copy_mock):
540533
image_info = _build_fake_partition_image_info()
541-
location_mock.return_value = '/tmp/configdrive'
542534
download_mock.return_value = None
543535
write_mock.return_value = {'root uuid': 'root_uuid'}
544536
dispatch_mock.return_value = 'manager'

0 commit comments

Comments
 (0)