Merge "Fix the undefined method 'chomp' for nil:NilClass error seen with ovs 2.10" into stable/rocky

This commit is contained in:
Zuul
2018-08-30 05:56:14 +00:00
committed by Gerrit Code Review

View File

@@ -39,6 +39,9 @@ Puppet::Type.type(:vs_config).provide(:ovs) do
configs = []
open_vs.each do |line|
key, value = line.split(' : ').map(&:strip)
if value.nil?
next
end
parsed_value = parse_column_value(value)
if parsed_value[:type] == "hash"
parsed_value[:value].each do |k, v|