diff --git a/install-sdist-to-test.py b/install-sdist-to-test.py index 056f34cce4e2460981150a7665413f23cd130cee..e4a58b91298c55fe7704d7a55f79aa59eb618dca 100644 --- a/install-sdist-to-test.py +++ b/install-sdist-to-test.py @@ -34,7 +34,7 @@ def _install_proc(hostname, username, password, sdist): f'sudo su - -c \'{pip} uninstall -y inventory\'', f'sudo su - -c \'{pip} install {scp_destination}\'', f'rm {scp_destination}', - f'chown -R inventory.inventory /home/inventory/venv', + 'chown -R inventory.inventory /home/inventory/venv', 'exit' ] stdin.write('\n'.join(commands) + '\n') diff --git a/inventory_provider/routes/msr.py b/inventory_provider/routes/msr.py index 0420367de3ace02f63bf4bacec4c3c854e97fce0..3327e61071242ebe53241a9205380122150cf62d 100644 --- a/inventory_provider/routes/msr.py +++ b/inventory_provider/routes/msr.py @@ -54,7 +54,11 @@ LOGICAL_SYSTEM_PEERING_LIST_SCHEMA = { }, # only vrr peerings have remote-asn "required": [ - "address", "description", "logical-system", "group", "hostname"], + "address", + "description", + "logical-system", + "group", + "hostname"], "additionalProperties": False } }, @@ -133,7 +137,7 @@ def logical_system_peerings(name=None): def _get_all_ls_keys(): keys = [] - for k in r.scan_iter(f'juniper-peerings:logical-system:*', count=1000): + for k in r.scan_iter('juniper-peerings:logical-system:*', count=1000): keys.append(k.decode('utf-8')) return keys