Skip to content

Commit

Permalink
Postpone CM provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Dec 17, 2018
1 parent cb98172 commit 8833a8d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/clients/firstboot.rb
Expand Up @@ -67,6 +67,8 @@ def main
@ret = ProductControl.Run
Builtins.y2milestone("ProductControl::Run() returned: %1", @ret)

WFM.CallFunction("configuration_management_finish", [])

Pkg.SourceFinishAll
Pkg.TargetFinish

Expand Down
1 change: 0 additions & 1 deletion src/lib/y2firstboot/clients/configuration_management.rb
Expand Up @@ -33,7 +33,6 @@ class ConfigurationManagement
def run
configurator = Yast::ConfigurationManagement::Configurators::Base.for(config)
configurator.prepare
Yast::ConfigurationManagement::Clients::Provision.new.run
end

private
Expand Down
5 changes: 0 additions & 5 deletions test/y2firstboot/clients/configuration_management_test.rb
Expand Up @@ -46,11 +46,6 @@
.and_return(configurator)
end

it "runs the provisioner" do
expect(provisioner).to receive(:run)
client.run
end

it "uses the configuration from the control file" do
expect(Yast::ConfigurationManagement::Configurators::Base).to receive(:for) do |config|
expect(config.states_roots).to include(Pathname.new("/srv/salt"))
Expand Down

0 comments on commit 8833a8d

Please sign in to comment.