Пример #1
0
    def set_virt_auto_boot(self, num: int):
        """
        Setter for booting a virtual machine automatically.

        :param num: The new value for whether to enable it or not.
        """
        utils.set_virt_auto_boot(self, num)
Пример #2
0
def test_set_virt_auto_boot(test_autoboot, expectation):
    # Arrange
    test_api = CobblerAPI()
    test_manager = CollectionManager(test_api)
    testprofile = Profile(test_manager)

    # Act
    with expectation:
        utils.set_virt_auto_boot(testprofile, test_autoboot)

        # Assert
        assert isinstance(testprofile.virt_auto_boot, bool)
        assert testprofile.virt_auto_boot is True or testprofile.virt_auto_boot is False
Пример #3
0
    def set_virt_auto_boot(self, num):
        """
        Setter for the virtual automatic boot option.

        :param num: May be "0" (disabled) or "1" (enabled)
        """
        return utils.set_virt_auto_boot(self, num)
Пример #4
0
 def set_virt_auto_boot(self, num):
     return utils.set_virt_auto_boot(self, num)
Пример #5
0
 def set_virt_auto_boot(self, num):
     return utils.set_virt_auto_boot(self, num)
Пример #6
0
 def set_virt_auto_boot(self, num):
     utils.set_virt_auto_boot(self, num)
Пример #7
0
 def set_virt_auto_boot(self, num):
     utils.set_virt_auto_boot(self, num)