Skip to content
Permalink
Browse files

Merge pull request #407 from aschnell/master

- adapted to new activate callbacks in libstorage-ng
  • Loading branch information...
aschnell committed Feb 28, 2018
2 parents 51ca24c + 47c4cb8 commit f93f318b744c21557201c278ffba801452814481
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Feb 28 14:34:54 CET 2018 - aschnell@suse.com

- adapted to new activate callbacks in libstorage-ng (see
bsc#1082542)
- 4.0.36

-------------------------------------------------------------------
Tue Feb 27 12:36:59 UTC 2018 - jreidinger@suse.com

@@ -22,7 +22,7 @@
%endif

Name: autoyast2
Version: 4.0.35
Version: 4.0.36
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -47,8 +47,8 @@ BuildRequires: yast2-packager
BuildRequires: yast2-update >= 3.3.0
BuildRequires: yast2-slp
BuildRequires: yast2-country
# Y2Storage::AutoinstProfile::SkipListValue#to_hash
BuildRequires: yast2-storage-ng >= 4.0.23
# ActivateCallbacks::multipath signature
BuildRequires: yast2-storage-ng >= 4.0.116

# %%{_unitdir} macro definition is in a separate package since 13.1
%if 0%{?suse_version} >= 1310
@@ -31,7 +31,7 @@ class ActivateCallbacks < Y2Storage::Callbacks::Activate
# This hook returns true if start_multipath was set to +true+.
#
# @return [Boolean]
def multipath
def multipath(looks_like_real_multipath)
Yast::AutoinstStorage.general_settings.fetch("start_multipath", false)
end

@@ -38,23 +38,23 @@
let(:start_multipath) { true }

it "returns true" do
expect(callbacks.multipath).to eq(true)
expect(callbacks.multipath(true)).to eq(true)
end
end

context "if start_multipath is set to 'false'" do
let(:start_multipath) { false }

it "returns false" do
expect(callbacks.multipath).to eq(false)
expect(callbacks.multipath(true)).to eq(false)
end
end

context "if start_multipath is not set" do
let(:start_multipath) { false }

it "returns false" do
expect(callbacks.multipath).to eq(false)
expect(callbacks.multipath(true)).to eq(false)
end
end
end

0 comments on commit f93f318

Please sign in to comment.
You can’t perform that action at this time.