Skip to content

Commit

Permalink
Only call to import when there is data
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Jul 5, 2021
1 parent 9993438 commit 8e86b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/autoinstall/importer.rb
Expand Up @@ -101,7 +101,7 @@ def import_sections
profile.select { |k, _| description.managed_keys.include?(k) }
end

Yast::WFM.CallFunction(description.client_name, ["Import", data]) if data
Yast::WFM.CallFunction(description.client_name, ["Import", data]) unless data&.empty?
end
end

Expand Down

0 comments on commit 8e86b3b

Please sign in to comment.