diff options
author | Erik Skultety <eskultet@redhat.com> | 2023-03-09 16:42:33 +0100 |
---|---|---|
committer | Erik Skultety <eskultet@redhat.com> | 2023-03-14 09:33:29 +0100 |
commit | e7c3e69ecb17ceb0460d5dd6ead856babe7d0b8e (patch) | |
tree | 0839a51242c26423553e5bb3dde73c3ee8036e19 | |
parent | a290d3eac4c9d63637b5daae9ca4b179a31890f3 (diff) | |
download | libvirt-ci-e7c3e69ecb17ceb0460d5dd6ead856babe7d0b8e.zip libvirt-ci-e7c3e69ecb17ceb0460d5dd6ead856babe7d0b8e.tar.gz libvirt-ci-e7c3e69ecb17ceb0460d5dd6ead856babe7d0b8e.tar.bz2 |
lcitool: Move install configs under the install package
These configs are all VM installation related, so it makes logical
sense to put the data resources under the lcitool.install subpackage.
This change will make transition from 'pkg_resources' to
'importlib.resources' more straightforward.
If the need for global configs pops up, we can have another configs dir
on the global level again.
Signed-off-by: Erik Skultety <eskultet@redhat.com>
-rw-r--r-- | lcitool/install/configs/autoinst.xml (renamed from lcitool/configs/autoinst.xml) | 0 | ||||
-rw-r--r-- | lcitool/install/configs/kickstart.cfg (renamed from lcitool/configs/kickstart.cfg) | 0 | ||||
-rw-r--r-- | lcitool/install/configs/preseed.cfg (renamed from lcitool/configs/preseed.cfg) | 0 | ||||
-rw-r--r-- | lcitool/install/install.py | 4 |
4 files changed, 2 insertions, 2 deletions
diff --git a/lcitool/configs/autoinst.xml b/lcitool/install/configs/autoinst.xml index 0f74851..0f74851 100644 --- a/lcitool/configs/autoinst.xml +++ b/lcitool/install/configs/autoinst.xml diff --git a/lcitool/configs/kickstart.cfg b/lcitool/install/configs/kickstart.cfg index 51db996..51db996 100644 --- a/lcitool/configs/kickstart.cfg +++ b/lcitool/install/configs/kickstart.cfg diff --git a/lcitool/configs/preseed.cfg b/lcitool/install/configs/preseed.cfg index 04c76f3..04c76f3 100644 --- a/lcitool/configs/preseed.cfg +++ b/lcitool/install/configs/preseed.cfg diff --git a/lcitool/install/install.py b/lcitool/install/install.py index c85175b..21d0533 100644 --- a/lcitool/install/install.py +++ b/lcitool/install/install.py @@ -135,9 +135,9 @@ class VirtInstall: raise InstallationNotSupported(target) # Unattended install scripts are being generated on the fly, based - # on the templates present in lcitool/configs/ + # on the templates present in lcitool/install/configs/ filename = resource_filename("lcitool", - f"configs/{install_config}") + f"install/configs/{install_config}") with open(filename, "r") as template: content = template.read() for option in unattended_options: |