fix deprecation error
diff --git a/xos/core/xoslib/methods/sshkeys.py b/xos/core/xoslib/methods/sshkeys.py
index 6223540..705a968 100644
--- a/xos/core/xoslib/methods/sshkeys.py
+++ b/xos/core/xoslib/methods/sshkeys.py
@@ -26,7 +26,7 @@
def get_queryset(self):
queryset = queryset=Instance.objects.all()
- node_name = self.request.QUERY_PARAMS.get('node_name', None)
+ node_name = self.request.query_params.get('node_name', None)
if node_name is not None:
queryset = queryset.filter(node__name = node_name)
@@ -47,7 +47,7 @@
def get_queryset(self):
queryset = queryset=Instance.objects.all()
- node_name = self.request.QUERY_PARAMS.get('node_name', None)
+ node_name = self.request.query_params.get('node_name', None)
if node_name is not None:
queryset = queryset.filter(node__name = node_name)