コード例 #1
0
    def SetConfiguration(self, data: Structure):
        """Set the source configuration.

        :param data: a structure of the type RPMOSTreeConfigurationData
        """
        self.implementation.set_configuration(
            RPMOSTreeConfigurationData.from_structure(data))
コード例 #2
0
ファイル: rpmostreepayload.py プロジェクト: 5l1v3r1/anaconda
    def _get_source_configuration(self):
        """Get the configuration of the RPM OSTree source.

        :return: an instance of RPMOSTreeConfigurationData
        """
        source_proxy = self.get_source_proxy()

        return RPMOSTreeConfigurationData.from_structure(
            source_proxy.Configuration)