Exemple #1
0
    def set_virt_cpus(self, num: Union[int, str]):
        """
        Setter for the number of virtual CPU cores to assign to the virtual machine.

        :param num: The number of cpu cores.
        """
        utils.set_virt_cpus(self, num)
Exemple #2
0
def test_set_virt_cpus():
    # Arrange
    test_api = CobblerAPI()
    test_manager = CollectionManager(test_api)
    test_system = System(test_manager)

    # Act -> These are develishly bad tests. Please spare me the lecture and let my joke in here.
    utils.set_virt_cpus(test_system, 666)

    # Assert
    assert test_system.virt_cpus == 666
Exemple #3
0
    def set_virt_cpus(self, num):
        """
        Setter for the number of virtual cpus.

        :param num: The number of virtual cpu cores.
        """
        return utils.set_virt_cpus(self, num)
Exemple #4
0
 def set_virt_cpus(self, num):
     return utils.set_virt_cpus(self, num)
Exemple #5
0
 def set_virt_cpus(self, num):
     return utils.set_virt_cpus(self, num)
Exemple #6
0
 def set_virt_cpus(self, num):
     utils.set_virt_cpus(self, num)
Exemple #7
0
 def set_virt_cpus(self, num):
     utils.set_virt_cpus(self, num)