summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2023-10-10 14:01:43 +0300
committerzsdc <taras@vyos.io>2023-10-11 17:02:02 +0300
commit0b136dd5beaa5b813ea4037f5c65f0c6090a4ff5 (patch)
tree2744322147340569afa581cd17435a8b9c059e0c
parent58c09bf858ab354dbadd890dfee53c5c933f70f4 (diff)
downloadvyos-cloud-init-0b136dd5beaa5b813ea4037f5c65f0c6090a4ff5.tar.gz
vyos-cloud-init-0b136dd5beaa5b813ea4037f5c65f0c6090a4ff5.zip
vyos_install: T5220: Removed excessive code
Removed an excessive call to `find_disk()`.
-rw-r--r--cloudinit/config/cc_vyos_install.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/cloudinit/config/cc_vyos_install.py b/cloudinit/config/cc_vyos_install.py
index c544c336..a7c73af4 100644
--- a/cloudinit/config/cc_vyos_install.py
+++ b/cloudinit/config/cc_vyos_install.py
@@ -307,7 +307,6 @@ def handle(name: str, cfg: dict, cloud: Cloud, _: Logger, args: list) -> None:
for dev_type in ['nvme', 'mmcblk']:
if dev_type in install_target:
part_prefix = 'p'
- install_target, target_size = find_disk()
LOG.info(
f'system will be installed to {install_target} ({target_size} bytes)')