Merge branch 'master' into lemur_vault_plugin

This commit is contained in:
alwaysjolley
2019-04-18 13:55:45 -04:00
14 changed files with 164 additions and 54 deletions

View File

@ -18,4 +18,14 @@ def get_plugin_option(name, options):
"""
for o in options:
if o.get('name') == name:
return o['value']
return o.get('value', o.get('default'))
def set_plugin_option(name, value, options):
"""
Set value for option name for options dict.
:param options:
"""
for o in options:
if o.get('name') == name:
o.update({'value': value})