Skip to content

Commit 869c060

Browse files
committed
Merge pull request #1017 from getredash/fix/ds_cli
Add data source to default group when creating with CLI
2 parents 7b5d16e + b932200 commit 869c060

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

redash/cli/data_sources.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ def new(name=None, type=None, options=None):
8181

8282
print "Creating {} data source ({}) with options:\n{}".format(type, name, options.to_json())
8383

84-
data_source = models.DataSource.create(name=name,
85-
type=type,
86-
options=options,
87-
org=models.Organization.get_by_slug('default'))
84+
data_source = models.DataSource.create_with_group(name=name,
85+
type=type,
86+
options=options,
87+
org=models.Organization.get_by_slug('default'))
8888
print "Id: {}".format(data_source.id)
8989

9090

0 commit comments

Comments
 (0)