diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py
index 95163f7607b6aeeba7279bfee92a353f496ecce9..2b6718155122636d18e6ec618a9a08f8d50a85cc 100644
--- a/inventory_provider/tasks/worker.py
+++ b/inventory_provider/tasks/worker.py
@@ -218,7 +218,7 @@ def update_junosspace_device_list(self):
     routers = {}
     for d in juniper.load_routers_from_junosspace(
             InventoryTask.config['junosspace']):
-        routers['junosspace:' + d['hostname']] = json.dumps(d).endode('utf-8')
+        routers['junosspace:' + d['hostname']] = json.dumps(d).encode('utf-8')
 
     self.update_state(
         state=states.STARTED,