コード例 #1
0
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
コード例 #2
0
    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)
コード例 #3
0
ファイル: image.py プロジェクト: LeoDemoniac/cobbler
    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)
コード例 #4
0
ファイル: distro.py プロジェクト: LeoDemoniac/cobbler
    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)
コード例 #5
0
ファイル: item_distro.py プロジェクト: ASyriy/cobbler
    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)
コード例 #6
0
 def set_arch(self, arch):
     """
     Override the arch used for reposync
     """
     return utils.set_arch(self, arch, repo=True)
コード例 #7
0
ファイル: item_image.py プロジェクト: ASyriy/cobbler
 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)
コード例 #8
0
 def set_arch(self, arch):
     """
     Override the arch used for reposync
     """
     return utils.set_arch(self, arch, repo=True)
コード例 #9
0
 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)