Skip to content
Snippets Groups Projects
Commit 70b5c981 authored by Tiru Srikantha's avatar Tiru Srikantha
Browse files

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.
parent 570b45a9
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ salt: ...@@ -4,7 +4,7 @@ salt:
- git - git
- roots - roots
gitfs_remotes: gitfs_remotes:
- git://github.com/saltstack-formulas/salt-formula.git - git://github.com/saltstack-formulas/salt-formula.git:
- base: develop - base: develop
file_roots: file_roots:
base: base:
......
...@@ -486,7 +486,7 @@ fileserver_backend: ...@@ -486,7 +486,7 @@ fileserver_backend:
{% if 'gitfs_remotes' in master -%} {% if 'gitfs_remotes' in master -%}
gitfs_remotes: gitfs_remotes:
{%- for remote 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() -%} {%- for repo, children in remote.iteritems() -%}
- {{ repo }}: - {{ repo }}:
{%- for child in children %} {%- for child in children %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment