From 078f58ad768a288b669f6cb3620717457553e37f Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Sun, 2 Mar 2014 13:02:14 +0400 Subject: [PATCH] driver: fixed condition 'adapter type is shared' --- lib/vagrant-parallels/driver/pd_8.rb | 2 +- lib/vagrant-parallels/driver/pd_9.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant-parallels/driver/pd_8.rb b/lib/vagrant-parallels/driver/pd_8.rb index 07cd07ca..30eef64d 100644 --- a/lib/vagrant-parallels/driver/pd_8.rb +++ b/lib/vagrant-parallels/driver/pd_8.rb @@ -131,7 +131,7 @@ def enable_adapters(adapters) args.concat(["--type", "bridged", "--iface", adapter[:bound_to]]) end - if adapter[:shared] + if adapter[:type] == :shared args.concat(["--type", "shared"]) end diff --git a/lib/vagrant-parallels/driver/pd_9.rb b/lib/vagrant-parallels/driver/pd_9.rb index b11f0dac..ee24a904 100644 --- a/lib/vagrant-parallels/driver/pd_9.rb +++ b/lib/vagrant-parallels/driver/pd_9.rb @@ -131,7 +131,7 @@ def enable_adapters(adapters) args.concat(["--type", "bridged", "--iface", adapter[:bound_to]]) end - if adapter[:shared] + if adapter[:type] == :shared args.concat(["--type", "shared"]) end