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