actions: Allow leaving stream args unspecified in set_default_streams.

Sets them to the create_stream_if_needed defaults.
This commit is contained in:
Rishi Gupta 2017-07-15 12:57:38 -07:00 committed by Tim Abbott
parent 69767a43cb
commit b14533d0b7
1 changed files with 2 additions and 2 deletions

View File

@ -2421,8 +2421,8 @@ def set_default_streams(realm, stream_dict):
stream_names.append(name)
stream, _ = create_stream_if_needed(realm,
name,
invite_only = options["invite_only"],
stream_description = options["description"])
invite_only = options.get("invite_only", False),
stream_description = options.get("description", ''))
DefaultStream.objects.create(stream=stream, realm=realm)
# Always include the realm's default notifications streams, if it exists