Skip to content

Commit

Permalink
write provider empty file on vagrant up command
Browse files Browse the repository at this point in the history
  • Loading branch information
jadilet committed Dec 26, 2018
1 parent 35012eb commit 58417a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-subutai/packer/subutai_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def self.load_config(cmd, provider)
# Write empty file with name provider
# ControlCenter uses for checking provider of peer
unless File.exist?(File.join(PARENT_DIR, @defaults[@provider]))
if Dir.exist?(PARENT_DIR)
if Dir.exist?(PARENT_DIR) && write?
file = File.new(File.join(PARENT_DIR, @defaults[@provider]), 'w')
file.close
end
Expand Down

0 comments on commit 58417a0

Please sign in to comment.