From 2a0468c09dd606a46e6442409387c75fa2739b0d Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Fri, 5 Mar 2021 09:14:40 +0100
Subject: [PATCH] renamed variable GB to Gb

---
 inventory_provider/routes/poller.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py
index e2a1587c..fae36993 100644
--- a/inventory_provider/routes/poller.py
+++ b/inventory_provider/routes/poller.py
@@ -9,7 +9,7 @@ from inventory_provider.routes import common
 logger = logging.getLogger(__name__)
 routes = Blueprint('poller-support-routes', __name__)
 
-GB = 1 << 30
+Gb = 1 << 30
 
 INTERFACE_LIST_SCHEMA = {
     '$schema': 'http://json-schema.org/draft-07/schema#',
@@ -307,11 +307,11 @@ def interface_speed(ifc):
 
     def _name_to_speed(ifc_name):
         if ifc_name.startswith('ge'):
-            return GB
+            return Gb
         if ifc_name.startswith('xe'):
-            return 10 * GB
+            return 10 * Gb
         if ifc_name.startswith('et'):
-            return 100 * GB
+            return 100 * Gb
         logger.warning(f'unrecognized interface name: {ifc_name}')
         return -1
 
-- 
GitLab