mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 10:25:23 +00:00
test fixes
This commit is contained in:
parent
7c9a96c196
commit
2736bd8902
@ -44,9 +44,9 @@
|
||||
|
||||
{%- macro gen_atom(package_name) -%}
|
||||
{% set params = salt.pillar.get("gentoo:portage:packages" + ":" + package_name, {}) %}
|
||||
{% if ((params is iterable) and (params is not string) ) and (('use' in params) or ('version' in params)) %}
|
||||
{% if ((params is iterable) and (params is not string) ) and (('use' in params) or ('version' in params)) -%}
|
||||
{{- package_name -}}: "{{- _getf(params, 'version') -}}{{- _getf(params, 'use', join=True) -}}"
|
||||
{% else %}
|
||||
{%- else %}
|
||||
{{- package_name -}}
|
||||
{% endif %}
|
||||
{%- endmacro -%}
|
||||
|
Loading…
Reference in New Issue
Block a user