Make ignored vagrant network options a constant

This commit is contained in:
Brian Cain 2019-03-12 10:40:58 -07:00
parent 5ed5868067
commit 6664936c0b
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 1 additions and 1 deletions

View File

@ -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|