We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4603809 commit f166c46Copy full SHA for f166c46
lib/puppet/provider/network_config/interfaces.rb
@@ -245,7 +245,7 @@ def self.parse_file(_filename, contents)
245
end
246
247
def self.interface_order(name, rules)
248
- (rules['rules'].map{ |entry| if name.match(entry.first) then entry.last end } + [rules['default']]).compact.first
+ (rules['rules'].map{ |entry| entry.last if name.match(entry.first) } + [rules['default']]).compact.first
249
250
251
# Generate an array of sections
0 commit comments