mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 21:48:16 -06:00
Lint PEP8
This commit is contained in:
parent
1ed0980632
commit
17ad376fce
@ -171,7 +171,7 @@ class EventRule(CustomFieldsMixin, ExportTemplatesMixin, TagsMixin, ChangeLogged
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
return ConditionSet(self.conditions).eval(data)
|
return ConditionSet(self.conditions).eval(data)
|
||||||
|
|
||||||
def render_script_data(self, context):
|
def render_script_data(self, context):
|
||||||
"""
|
"""
|
||||||
Render Script Data, if defined. Otherwise, jump the context as a JSON object.
|
Render Script Data, if defined. Otherwise, jump the context as a JSON object.
|
||||||
|
@ -491,7 +491,7 @@ def run_script(data, job, request=None, commit=True, **kwargs):
|
|||||||
if isinstance(data, str):
|
if isinstance(data, str):
|
||||||
data = json.loads(data)
|
data = json.loads(data)
|
||||||
form = script.as_form(data)
|
form = script.as_form(data)
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
data = form.cleaned_data
|
data = form.cleaned_data
|
||||||
|
|
||||||
logger = logging.getLogger(f"netbox.scripts.{script.full_name}")
|
logger = logging.getLogger(f"netbox.scripts.{script.full_name}")
|
||||||
|
Loading…
Reference in New Issue
Block a user