return a message after creating a poll

This commit is contained in:
Thorsten
2016-01-23 21:47:42 +01:00
parent 09f2589321
commit 113b9d94b1

View File

@@ -900,6 +900,7 @@ def poll(argv, **args):
# create an item for each option # create an item for each option
pollcfg['subject'] = subject pollcfg['subject'] = subject
pollcfg.update({k: [] for k in choices}) pollcfg.update({k: [] for k in choices})
return {'msg': 'created the poll.'}
config.runtime_config_store['plugins']['poll'] = pollcfg config.runtime_config_store['plugins']['poll'] = pollcfg
config.runtimeconf_persist() config.runtimeconf_persist()