|
|
7d6bdc |
From 1e275a0da36595dd921732e0f60510171cdbe75c Mon Sep 17 00:00:00 2001
|
|
|
7d6bdc |
From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= <matyc@redhat.com>
|
|
|
7d6bdc |
Date: Tue, 15 Jan 2019 19:16:44 +0100
|
|
|
7d6bdc |
Subject: [PATCH] Updated code to comply to the Bootloader proxy API.
|
|
|
7d6bdc |
|
|
|
7d6bdc |
---
|
|
|
7d6bdc |
org_fedora_oscap/rule_handling.py | 4 ++--
|
|
|
7d6bdc |
tests/test_rule_handling.py | 4 ++--
|
|
|
7d6bdc |
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
7d6bdc |
|
|
|
7d6bdc |
diff --git a/org_fedora_oscap/rule_handling.py b/org_fedora_oscap/rule_handling.py
|
|
|
7d6bdc |
index 738465f..f3fd057 100644
|
|
|
7d6bdc |
--- a/org_fedora_oscap/rule_handling.py
|
|
|
7d6bdc |
+++ b/org_fedora_oscap/rule_handling.py
|
|
|
7d6bdc |
@@ -716,9 +716,9 @@ def eval_rules(self, ksdata, storage, report_only=False):
|
|
|
7d6bdc |
|
|
|
7d6bdc |
bootloader_proxy = STORAGE.get_proxy(BOOTLOADER)
|
|
|
7d6bdc |
|
|
|
7d6bdc |
- if self._require_password and not bootloader_proxy.password_is_set:
|
|
|
7d6bdc |
+ if self._require_password and not bootloader_proxy.IsPasswordSet:
|
|
|
7d6bdc |
# TODO: Anaconda provides a way to set bootloader password:
|
|
|
7d6bdc |
- # bootloader_proxy.set_password(...)
|
|
|
7d6bdc |
+ # bootloader_proxy.SetEncryptedPassword(...)
|
|
|
7d6bdc |
# We don't support setting the bootloader password yet,
|
|
|
7d6bdc |
# but we shouldn't stop the installation, just because of that.
|
|
|
7d6bdc |
return [RuleMessage(self.__class__, common.MESSAGE_TYPE_WARNING,
|