瀏覽代碼

Test if individual gitfs remote is string

https://github.com/saltstack-formulas/salt-formula/issues/64

Fixes issue where a gitfs remote that has no child options would cause an
error. Also fix up bad yaml in pillar example.
tags/v0.57.0
Tiru Srikantha 10 年之前
父節點
當前提交
70b5c981fa
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      pillar.example
  2. +1
    -1
      salt/files/master.d/_defaults.conf

+ 1
- 1
pillar.example 查看文件

@@ -4,7 +4,7 @@ salt:
- git
- roots
gitfs_remotes:
- git://github.com/saltstack-formulas/salt-formula.git
- git://github.com/saltstack-formulas/salt-formula.git:
- base: develop
file_roots:
base:

+ 1
- 1
salt/files/master.d/_defaults.conf 查看文件

@@ -486,7 +486,7 @@ fileserver_backend:
{% if 'gitfs_remotes' in master -%}
gitfs_remotes:
{%- for remote in master['gitfs_remotes'] %}
{% if remote is iterable %}
{% if remote is iterable and remote is not string %}
{%- for repo, children in remote.iteritems() -%}
- {{ repo }}:
{%- for child in children %}

Loading…
取消
儲存