neil / rpms / python-blivet

Forked from rpms/python-blivet a year ago
Clone
34c36b
From 04dc595e3921879fa3e5b0f82506d63fdea4d2c8 Mon Sep 17 00:00:00 2001
34c36b
From: Vojtech Trefny <vtrefny@redhat.com>
34c36b
Date: Wed, 3 Oct 2018 14:11:08 +0200
34c36b
Subject: [PATCH] Fix options for ISCSI functions
34c36b
34c36b
Correct mutual authentication options in UDisks are
34c36b
"reverse-username" and "reverse-password".
34c36b
34c36b
Resolves: rhbz#1635569
34c36b
---
34c36b
 blivet/iscsi.py | 8 ++++----
34c36b
 1 file changed, 4 insertions(+), 4 deletions(-)
34c36b
34c36b
diff --git a/blivet/iscsi.py b/blivet/iscsi.py
34c36b
index b979e01c..ca51f8ed 100644
34c36b
--- a/blivet/iscsi.py
34c36b
+++ b/blivet/iscsi.py
34c36b
@@ -385,9 +385,9 @@ class iSCSI(object):
34c36b
             if password:
34c36b
                 auth_info["password"] = GLib.Variant("s", password)
34c36b
             if r_username:
34c36b
-                auth_info["r_username"] = GLib.Variant("s", r_username)
34c36b
+                auth_info["reverse-username"] = GLib.Variant("s", r_username)
34c36b
             if r_password:
34c36b
-                auth_info["r_password"] = GLib.Variant("s", r_password)
34c36b
+                auth_info["reverse-password"] = GLib.Variant("s", r_password)
34c36b
 
34c36b
             args = GLib.Variant("(sqa{sv})", (ipaddr, int(port), auth_info))
34c36b
             nodes, _n_nodes = self._call_initiator_method("DiscoverSendTargets", args)
34c36b
@@ -423,9 +423,9 @@ class iSCSI(object):
34c36b
         if password:
34c36b
             auth_info["password"] = GLib.Variant("s", password)
34c36b
         if r_username:
34c36b
-            auth_info["r_username"] = GLib.Variant("s", r_username)
34c36b
+            auth_info["reverse-username"] = GLib.Variant("s", r_username)
34c36b
         if r_password:
34c36b
-            auth_info["r_password"] = GLib.Variant("s", r_password)
34c36b
+            auth_info["reverse-password"] = GLib.Variant("s", r_password)
34c36b
 
34c36b
         try:
34c36b
             self._login(node, auth_info)
34c36b
-- 
34c36b
2.17.2
34c36b