Skip to content

Commit

Permalink
changed check_mac to enable_mac_check #141
Browse files Browse the repository at this point in the history
  • Loading branch information
jadilet committed Jan 23, 2019
1 parent 02df7ed commit ab43a44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/vagrant-subutai/packer/subutai_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module SubutaiConfig
BRIDGE_VMWARE
BRIDGE_KVM
BRIDGE_HYPERV
CHECK_MAC
ENABLE_MAC_CHECK
].freeze

GENERATED_PARAMETERS = %i[
Expand Down Expand Up @@ -116,7 +116,7 @@ module SubutaiConfig
SUBUTAI_DESKTOP: false, # install desktop with tray and p2p client
SUBUTAI_MAN_TMPL: nil, # provision alternative management template
APT_PROXY_URL: nil, # configure apt proxy URL
CHECK_MAC: false, # mac addr checks
ENABLE_MAC_CHECK: false, # mac addr checks

# provider with value
hyper_v: 'hyperv',
Expand Down Expand Up @@ -355,7 +355,7 @@ def self.do_network(provider)
if @bridged && get(:_SSH_PORT).nil? && write?

put(:_BASE_MAC, find_mac(provider), true) \
if @bridged && get(:_BASE_MAC).nil? && write? && get(:CHECK_MAC)
if @bridged && get(:_BASE_MAC).nil? && write? && get(:ENABLE_MAC_CHECK)

put(:_BRIDGED, @bridged, true) if write?

Expand Down
2 changes: 1 addition & 1 deletion lib/vagrant-subutai/packer/subutai_validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module SubutaiValidation
"BRIDGE_VMWARE": :string,
"BRIDGE_KVM": :string,
"BRIDGE_HYPERV": :string,
"CHECK_MAC": :bool
"ENABLE_MAC_CHECK": :bool
}.freeze

def self.validate(key, value)
Expand Down

0 comments on commit ab43a44

Please sign in to comment.