2017-01-04 40 views
0

當背景看,我發現我的變量之一具有提取上下文功能

在我的國家文件,我有

{% set status = salt['service.get_all'] %} 

當我甩我看到的背景下,

"Context {'status': <function get_all at 0x036E9B30>, } " 

如何提取「狀態」的值,如果它的功能?

回答

1

我想通了。

我需要添加括號

{% set status = salt['service.get_all']() %}