From 6fb3c30c09655ebd40a6524529fb478a69437ad2 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Sat, 23 Jan 2021 22:05:32 +0100
Subject: [PATCH] use f-string

---
 inventory_provider/tasks/worker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py
index d5687e4e..704a7643 100644
--- a/inventory_provider/tasks/worker.py
+++ b/inventory_provider/tasks/worker.py
@@ -717,7 +717,7 @@ def _build_subnet_db(update_callback=lambda s: None):
 
     rp = r.pipeline()
     for k, v in subnets.items():
-        rp.set('subnets:' + k, json.dumps(v))
+        rp.set(f'subnets:{k}', json.dumps(v))
     rp.execute()
 
 
-- 
GitLab