/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/pytests/functional/modules/state/requisites/__init__.py
13 строк
430 B
Pedro Algarvio
Migrate `integration.modules.test_state` to PyTest
19 янв 2021, 21:44
19 янв 2021, 21:44
89e65f9
Код
Авторство
О чём код?
def normalize_ret(ret): """ Normalize the return to the format that we'll use for result checking """ result = {} for item, descr in ret.items(): result[item] = { "__run_num__": descr["__run_num__"], "comment": descr["comment"], "result": descr["result"], "changes": descr["changes"] != {}, # whether there where any changes } return result