Skip to content
Browse files

Use 2.7 compatible syntax for accessing scope object

  • Loading branch information...
1 parent c193775 commit a913a0be5405cdb6bb7c9bf6c52e73f08d71ab2c @adrienthebo adrienthebo committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/bond/opts-redhat.erb
View
2 templates/bond/opts-redhat.erb
@@ -1 +1 @@
-<%= %w[mode miimon downdelay updelay lacp_rate primary primary_reselect xmit_hash_policy].reject { |thing| scope[thing] == :undef }.map {|thing| "#{thing}=#{scope[thing]}"}.join(' ') -%>
+<%= %w[mode miimon downdelay updelay lacp_rate primary primary_reselect xmit_hash_policy].reject { |thing| scope.lookupvar(thing) == :undef }.map {|thing| "#{thing}=#{scope.lookupvar(thing)}"}.join(' ') -%>

0 comments on commit a913a0b

Please sign in to comment.
Something went wrong with that request. Please try again.