Fixed use of FileSystemBuilder class

This was a broken coding for the construction of a
FileSystemBuilder instance in the PxeBuilder implementation.
The unit testing did not fail due to mocking code.
Integration testing however showed it immediately
This commit is contained in:
Marcus Schäfer 2019-07-19 11:15:07 +02:00
parent ba0bafd0a3
commit c1d9722ffa
No known key found for this signature in database
GPG Key ID: AD11DD02B44996EF

View File

@ -51,13 +51,8 @@ class PxeBuilder(object):
self.target_dir = target_dir
self.compressed = xml_state.build_type.get_compressed()
self.xen_server = xml_state.is_xen_server()
self.filesystem_custom_parameters = {
'mount_options': xml_state.get_fs_mount_option_list(),
'create_options': xml_state.get_fs_create_option_list()
}
self.filesystem = FileSystemBuilder(
xml_state, target_dir, root_dir + '/',
self.filesystem_custom_parameters
xml_state, target_dir, root_dir + '/'
)
self.system_setup = SystemSetup(
xml_state=xml_state, root_dir=root_dir