From 6664936c0bd3cf2f112623980b8a69c75c57f4b4 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Tue, 12 Mar 2019 10:40:58 -0700 Subject: [PATCH] Make ignored vagrant network options a constant --- plugins/providers/docker/action/network.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/providers/docker/action/network.rb b/plugins/providers/docker/action/network.rb index f82f8642b..16752f67e 100644 --- a/plugins/providers/docker/action/network.rb +++ b/plugins/providers/docker/action/network.rb @@ -14,7 +14,7 @@ module VagrantPlugins # @returns[Array] cli_opts - an array of strings used for the network commnad def generate_create_cli_arguments(options) cli_opts = [] - ignored_options = ["ip", "protocol", "id", "alias"] + ignored_options = ["ip", "protocol", "id", "alias"].map(&:freeze).freeze # Splits the networking options to generate the proper CLI flags for docker options.each do |opt, value|