From 28cc952ce57eef31bbb2ff16403425dae6765af7 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Sat, 8 Apr 2023 18:45:57 +0200
Subject: [PATCH] pep8

---
 geant_service_orchestrator/services/ipam.py          |  1 +
 .../workflows/device/create_device.py                | 12 +++++++++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/geant_service_orchestrator/services/ipam.py b/geant_service_orchestrator/services/ipam.py
index 3314bce4..021bcb44 100644
--- a/geant_service_orchestrator/services/ipam.py
+++ b/geant_service_orchestrator/services/ipam.py
@@ -2,6 +2,7 @@ import ipaddress
 from pydantic import BaseSettings
 from geant_service_orchestrator import settings
 
+
 class ServiceNetworks(BaseSettings):
     v4: ipaddress.IPv4Network
     v6: ipaddress.IPv6Network
diff --git a/geant_service_orchestrator/workflows/device/create_device.py b/geant_service_orchestrator/workflows/device/create_device.py
index 02eedfa7..bf7e6627 100644
--- a/geant_service_orchestrator/workflows/device/create_device.py
+++ b/geant_service_orchestrator/workflows/device/create_device.py
@@ -95,7 +95,10 @@ def initialize_subscription(
 
 @step("Provision device [DRY RUN]")
 def provision_device_dry(
-    subscription: device.DeviceProvisioning, fqdn: str, ts_address: str, ts_port: str
+    subscription: device.DeviceProvisioning,
+    fqdn: str,
+    ts_address: str,
+    ts_port: str
 ) -> State:
     import ansible_runner
 
@@ -117,7 +120,7 @@ def provision_device_dry(
     )
     out = r.stdout.read()
     out_splitted = out.splitlines()
-    #if r.rc != 0: 
+    # if r.rc != 0:
     #    raise ValueError("Ansible has failed")
     return {"dry_run_output": out_splitted, "return_code": r.rc}
 
@@ -134,7 +137,10 @@ def confirm_step() -> FormGenerator:
 
 @step("Provision device [FOR REAL]")
 def provision_device_real(
-    subscription: device.DeviceProvisioning, fqdn: str, ts_address: str, ts_port: str
+    subscription: device.DeviceProvisioning,
+    fqdn: str,
+    ts_address: str,
+    ts_port: str
 ) -> State:
     import ansible_runner
 
-- 
GitLab