Skip to content

Commit 82598c1

Browse files
committed
fixed testcase
1 parent 333f4c0 commit 82598c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/bootloader/bls.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ def self.enable_tpm2
127127
end
128128
end
129129

130-
private
130+
protected
131131

132-
def generate_machine_id
132+
def self.generate_machine_id
133133
Yast::SCR.Execute(Yast::Path.new(".target.remove"), "/etc/machine-id")
134134
begin
135135
Yast::Execute.on_target!("/usr/bin/dbus-uuidgen",
@@ -145,7 +145,7 @@ def generate_machine_id
145145
end
146146
end
147147

148-
def export_password
148+
def self.export_password
149149
pwd = Y2Storage::StorageManager.instance.encryption_tpm2_password
150150
if pwd.empty?
151151
Yast::Report.Error(_("Cannot pass empty password via the keyring."))

0 commit comments

Comments
 (0)