mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 21:18: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 ConditionSet(self.conditions).eval(data)
|
||||
|
||||
|
||||
def render_script_data(self, context):
|
||||
"""
|
||||
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):
|
||||
data = json.loads(data)
|
||||
form = script.as_form(data)
|
||||
if form.is_valid():
|
||||
if form.is_valid():
|
||||
data = form.cleaned_data
|
||||
|
||||
logger = logging.getLogger(f"netbox.scripts.{script.full_name}")
|
||||
|
Loading…
Reference in New Issue
Block a user