diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2018-11-15 19:30:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-15 19:30:21 -0500 |
| commit | 3dad8fefa1dccc15c9d0bcba3219305c3cbab69c (patch) | |
| tree | 70c877188224219bb94d6b1c98894e53daf02497 /data | |
| parent | 79b79c1db7652ba763f0186360e92da7f4b30fbd (diff) | |
| parent | 6056ca97d889fb268cc287334bc644e6b6d487d7 (diff) | |
Merge pull request #424 from hairyhenderson/add-datasources-to-context-404
New --context flag for pre-loading datasources into context
Diffstat (limited to 'data')
| -rw-r--r-- | data/datasource.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/data/datasource.go b/data/datasource.go index 0e676e5b..2e4d845d 100644 --- a/data/datasource.go +++ b/data/datasource.go @@ -267,6 +267,9 @@ func (d *Data) lookupSource(alias string) (*Source, error) { } d.Sources[alias] = source } + if source.Alias == "" { + source.Alias = alias + } return source, nil } |
