def SetConfiguration(self, data: Structure): """Set the source configuration. :param data: a structure of the type LiveImageConfigurationData """ self.implementation.set_configuration( LiveImageConfigurationData.from_structure(data))
def set_from_opts(self, opts): """Set the payload from the Anaconda cmdline options. :param opts: a namespace of options """ source_proxy = self.get_source_proxy() source_data = LiveImageConfigurationData.from_structure( source_proxy.Configuration) if opts.proxy: source_data.proxy = opts.proxy if not conf.payload.verify_ssl: source_data.ssl_verification_enabled = conf.payload.verify_ssl source_proxy.Configuration = \ LiveImageConfigurationData.to_structure(source_data)