feat: add ci build task (#342)
- a ci workflow for build tests - run pre-commit against all files Reviewed-on: #342
This commit was merged in pull request #342.
This commit is contained in:
@@ -8,7 +8,6 @@ Facter.add('pve_nodelist') do
|
||||
conf_file = '/etc/pve/corosync.conf'
|
||||
node_list = {}
|
||||
current_node = nil
|
||||
# rubocop:disable Metrics/BlockNesting
|
||||
|
||||
if File.exist?(conf_file)
|
||||
File.foreach(conf_file) do |line|
|
||||
@@ -28,8 +27,6 @@ Facter.add('pve_nodelist') do
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:enable Metrics/BlockNesting
|
||||
|
||||
node_list.empty? ? nil : node_list
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user