def kernel_config_from_pod(pod): config = KernelConfig('') config.typed_config._config = pod['kernel_config'] lines = [] for key, value in config.items(): if value == 'n': lines.append('# {} is not set'.format(key)) else: lines.append('{}={}'.format(key, value)) config.text = '\n'.join(lines) return config
def kernel_config_from_pod(pod): config = KernelConfig('') config._config = pod['kernel_config'] lines = [] for key, value in config._config.items(): if value == 'n': lines.append('# {} is not set'.format(key)) else: lines.append('{}={}'.format(key, value)) config.text = '\n'.join(lines) return config