diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2018-11-12 23:22:06 -0500 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2018-11-15 13:40:17 -0500 |
| commit | 6056ca97d889fb268cc287334bc644e6b6d487d7 (patch) | |
| tree | 70c877188224219bb94d6b1c98894e53daf02497 /data | |
| parent | 79b79c1db7652ba763f0186360e92da7f4b30fbd (diff) | |
New --context flag for adding datasources to context
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
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 } |
