Skip to content
Snippets Groups Projects
Commit 28cc952c authored by Erik Reid's avatar Erik Reid
Browse files

pep8

parent f83593dd
Branches
Tags
1 merge request!5Device workflows
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment