def test_set_arch(test_architecture, test_raise): # Arrange test_api = CobblerAPI() test_manager = CollectionManager(test_api) testdistro = Distro(test_manager) # Act with test_raise: utils.set_arch(testdistro, test_architecture) # Assert assert testdistro.arch == test_architecture
def set_arch(self, arch): """ Override the arch used for reposync :param arch: The new arch which will be used. """ return utils.set_arch(self, arch, repo=True)
def set_arch(self, arch): """ The field is mainly relevant to PXE provisioning. See comments for set_arch in item_distro.py, this works the same. :param arch: The new architecture to set. """ return utils.set_arch(self, arch)
def set_arch(self, arch): """ The field is mainly relevant to PXE provisioning. Using an alternative distro type allows for dhcpd.conf templating to "do the right thing" with those systems -- this also relates to bootloader configuration files which have different syntax for different distro types (because of the bootloaders). This field is named "arch" because mainly on Linux, we only care about the architecture, though if (in the future) new provisioning types are added, an arch value might be something like "bsd_x86". :param arch: The architecture of the operating system distro. """ return utils.set_arch(self, arch)
def set_arch(self, arch): """ The field is mainly relevant to PXE provisioning. Using an alternative distro type allows for dhcpd.conf templating to "do the right thing" with those systems -- this also relates to bootloader configuration files which have different syntax for different distro types (because of the bootloaders). This field is named "arch" because mainly on Linux, we only care about the architecture, though if (in the future) new provisioning types are added, an arch value might be something like "bsd_x86". """ return utils.set_arch(self, arch)
def set_arch(self, arch): """ Override the arch used for reposync """ return utils.set_arch(self, arch, repo=True)
def set_arch(self, arch): """ The field is mainly relevant to PXE provisioning. see comments for set_arch in item_distro.py, this works the same. """ return utils.set_arch(self, arch)