예제 #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)
예제 #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
예제 #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)
예제 #4
0
 def set_virt_cpus(self, num):
     return utils.set_virt_cpus(self, num)
예제 #5
0
 def set_virt_cpus(self, num):
     return utils.set_virt_cpus(self, num)
예제 #6
0
 def set_virt_cpus(self, num):
     utils.set_virt_cpus(self, num)
예제 #7
0
 def set_virt_cpus(self, num):
     utils.set_virt_cpus(self, num)