Make ignored vagrant network options a constant
This commit is contained in:
parent
5ed5868067
commit
6664936c0b
|
@ -14,7 +14,7 @@ module VagrantPlugins
|
||||||
# @returns[Array] cli_opts - an array of strings used for the network commnad
|
# @returns[Array] cli_opts - an array of strings used for the network commnad
|
||||||
def generate_create_cli_arguments(options)
|
def generate_create_cli_arguments(options)
|
||||||
cli_opts = []
|
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
|
# Splits the networking options to generate the proper CLI flags for docker
|
||||||
options.each do |opt, value|
|
options.each do |opt, value|
|
||||||
|
|
Loading…
Reference in New Issue